Vidyalelo
JavaScript · Q27

Classes And Modules

Programming · JavaScript · question 27

Q27

Consider the following code snippet var sets = com.davidflanagan.collections.sets; What is the programmer trying to do in the above code snippet?

A.
Importing a single module
B.
Importing a module partially
C.
Importing a namespace
D.
Importing the entire module
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
Rather than importing individual classes, a programmer might import the entire module to the global namespace.