title: How to Return Value in Pass-Through Function (Node.js)
body: <p>I am trying to set a variable in a parent function to a imported and nested function in Node.</p>
  
  <p><strong>Parent</strong></p>
  
  <pre><code>const child = require('./child')
  
  function init() {
    second()
    let def = abc
    console.log(def) // Expected log: 15
                     // Actual log: abc is not defined
  }
  
  function second() {
    return child.third()
  }
  
  init()
  </code></pre>
  
  <p><strong>Child</strong></p>
  
  <pre><code>exports.third = () =&gt; {
    let abc = 15
    return abc
  }
  </code></pre>
  
  <p>How do I properly return the value of <code>abc</code> so it can be set and logged in <code>init()</code>?</p>