MCQ Single Best Answer Easy

QWhich of the following objects has the length property?

ID: #5104 Javascript DOM & Event Handling MCQ 108 views
Question Info
#5104Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Window
  • B Element
  • C History
  • D Document
Correct Answer: Option C

Explanation

The browsing history list's element count is specified by the length attribute of the History object.
Since the currently-loaded page is included in the list, the property always returns at least 1.

Share This Question

Challenge a friend or share with your study group.