title: How do I call a JS Function in another file?
body: <p>How do I call a function which is stored in an other function?</p>
  <p>I created two js files (File A and File B). In file A I created a function called &quot;getFiles&quot; and I would like to call this function in File B.</p>
  <p>File A:</p>
  <pre><code>export function getFiles(input){
      ...
  }
  </code></pre>
  <p>File B:</p>
  <pre><code>import {getFiles} = from './A.js';
  
  getFiles('');
  </code></pre>
  <p>But I'm getting the error message &quot;Module '&quot;./A.js&quot;' has no exported member 'getFiles'.&quot;</p>
  <p>Does anyone know how I can call the function in File B?</p>