Machine-translated by Google. Questions are authored in English.
Top

Discussion

The following statements are about three important browser objects in JavaScript :

I. window object : The highest of all objects in the client-side JavaScript object hierarchy.
II. navigator object : A collection of information about the browser. Useful in browser sniffing.
III. document object : Provides access to the document being viewed

Which of the above statements is/are true ?

  • A.Only (I) above
  • B.Only (II) above
  • C.Only (III) above
  • D.All (I), (II) and (III) above

Answer: D

The answer is All (I), (II) and (III) above.

All three statements are true. The window object is the global, top-level object of client-side JavaScript, and the others are its properties. The navigator object describes the browser (name, version, platform), which is why it was used for browser sniffing. The document object gives access to the page being viewed, the entry point to the DOM.

Since every statement holds, the options naming only one are incomplete.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.