global keyword

Last updated

What is global keyword?

In browsers, the top-level scope is the global scope, and its global object is called the window object. Within the browser, var something will define a new global variable inside the window object. In Node.js, this is different. The top-level scope is not the global scope; var something inside a Node.js module will be local to that module.

Free resources to learn global keyword

More in stage 3: npm

global keyword: common questions

Can I learn global keyword in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain global keyword in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this global keyword tutorial for beginners?

It is lesson 12 of 113 in the free Node.js roadmap, in stage 3, npm. If you are new to Node.js, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me