Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which of the following is a global object?

  2. A.

     Register

    B.

     Location

    C.

     Window

    D.

     Position

    View Answer

    Workspace

    Answer : Option C

    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.


Be The First To Comment