02. Window Object πŸ‘©β€πŸŽ“πŸ‘¨β€πŸŽ“

πŸ“ Add Comments to Implementation of Window Object

Work with a partner to add comments describing the functionality of the code found in Starter Window Object Activity Files.

πŸ“ Notes

Refer to the documentation:

MDN Web Docs on Window

MDN Web Docs on Document


πŸ† Bonus

If you have completed this activity, work through the following challenge with your partner to further your knowledge:

  • How would you log the length property of the window object?

Use Google or another search engine to research this.


// TODO: What will the following line of code log?
console.log(window);

// TODO: What will the following line of code log?
console.log(window.document);

// TODO: What will the following line of code log?
console.log(document.documentElement);

// TODO: What will the following line of code log?
console.log(document.head);

βœ… Solutions

Solutions Click Here