- A To use a method that defines all the variables
- B To use an object that has the reference to all the variables
- C To use an object as its namespace
- D To use global functions
- Share this MCQ
Answer:
C
Share this MCQ
To prevent the creation of global variables, a module can use an object as a namespace.
This means that instead of defining global functions and variables, the module stores them as properties of an object, which may be linked to a global variable
Share this MCQ