Which of the following is a global object?

A. Register

B. Location

C. Window

D. Position

Answer: Option C

Solution(By Examveda Team)

In client-side JavaScript, the Window object is also the global object. This means that the Window object is at the top of the scope chain and that its properties and methods are effectively global variables and global functions.

Join The Discussion

Related Questions on Server Side and Client Side Scripting

What is the code to print hello one second from now?

A. setTimeout(function() { console.log("Hello World"); }, 1000);

B. setTimeout(function() { 1000, console.log("Hello World"); });

C. setTimeout(function(1000) { console.log("Hello World"); });

D. setTimeout(function() { console.log("Hello World"); });