title: How to pass catch error inside function into parent
body: <p>I have this sample couple lines of code, wanna know how exactly the logic below:</p>
  
  <pre><code>try {
    var response = child()
    console.log('why here')
  } catch (err) {
    console.log('should show this', err)
  }
  
  function child() {
    try {
      throw new Error('oops');
    } catch (err) {
      console.log('child error', err)
    }
  }
  </code></pre>
  
  <p>The expected result is to console <code>should show this</code> together with err, but it returned console <code>why here</code></p>