Using variables and functions across .js files

Using variables and functions across .js files
0

#1

anyone got a good resource on importing and exporting functions or variables from one file to another?
like if i defined an object A = {} in one file how would I export, import it and use it in a different file


#2

Have you looked through the FCC curriculum for this very subject?