Which of the following is true about the global object in a Node.js module?

  • It is available only within the module where it is declared.
  • It is a shared object across all modules in a Node.js application.
  • It contains all the global variables of the Node.js runtime.
  • It can be modified by any module in the application.
The global object in a Node.js module is available only within the module where it is declared. It is not shared across all modules, and each module has its own isolated scope. The other options do not accurately describe the behavior of the Node.js global object.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *