title: How to call arrow function in another arrow function in nodejs
body: <p>Hey I have three functions in my javascript file like this</p>
  
  <p>token.js</p>
  
  <pre><code>const function1 = async (token) =&gt; {
    .....
  };
  
  const function2 = async(token, permission) =&gt; {
      // I want to call function1 here like
      function1(token);
  };
  
  module.exports = { function1, function2 }
  </code></pre>
  
  <p>In <code>function2</code> I want to call function it is giving me an error <code>function1 is not a function</code></p>
  
  <p>Does anyone know how to resolve this ?</p>