Module System Flashcards

1
Q

What is a JavaScript module?

A

is a single .js file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In JavaScript, how do you make a function in a module available to other modules?

A

export the function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In JavaScript, how do you use a function from another module?

A

import the exported function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly