1.

Which of the following is a global object?(a) Register(b) Location(c) Window(d) PositionI have been asked this question in an international level competition.Query is from JavaScript in Web Browsers in portion Server-Side and Client-Side Scripting of JavaScript

Answer»

Correct OPTION is (C) Window

Explanation: 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.



Discussion

No Comment Found

Related InterviewSolutions