144
rated 0 times
[
148]
[
4]
/ answers: 1 / hits: 6228
/ 4 Years ago, mon, june 22, 2020, 12:00:00
How do I call a function which is stored in an other function?
I created two js files (File A and File B). In file A I created a function called "getFiles" and I would like to call this function in File B.
File A:
export function getFiles(input){
...
}
File B:
import {getFiles} = from './A.js';
getFiles('');
But I'm getting the error message "Module '"./A.js"' has no exported member 'getFiles'."
Does anyone know how I can call the function in File B?
More From » function