Vidyalelo
JavaScript · Q21

Classes And Modules

Programming · JavaScript · question 21

Q21

The maximum number of global symbols a module can define is

A.
2
B.
3
C.
1
Answer
D.
4

Answer: Option C

Solution

Answer: Option C
Solution:
Generally, the various modules are allowed to run in the pristine (or near pristine) environment that it expects. The modules should minimize the number of global symbols they define – ideally, no module should define more than one.