Module System Flashcards
1
Q
What is a JavaScript module?
A
is a single .js file
2
Q
What are the advantages of modular programming?
A
keep the code clean, makes it easier to read and tell what the problem is when it arises
3
Q
In JavaScript, how do you make a function in a module available to other modules?
A
export the function
4
Q
In JavaScript, how do you use a function from another module?
A
import the exported function