title: Uses of the finally statement
body: <p>This is a very basic question. In Java I use the finally statement to close resources because "it's a good practice". I've been developing in Javascript and then in Node.js during some years and I've <strong>never</strong> used the <code>finally</code> statement. I know that in Node.js all of us follow the <em>first parameter error handling</em> pattern. Anyway, the 2 following snippets do the same:</p>
  
  <pre><code>try{
      throw 123
  }catch (e){
  
  }finally{
      console.log(1)
  }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>try{
      throw 123
  }catch (e){
  
  }
  
  console.log(1)
  </code></pre>
  
  <p>Both print 1.</p>
  
  <p>Why is <code>finally</code> a keyword if it has no real benefit? The clean up code can be put inside the catch.</p>