Work with a partner to add comments describing the functionality of the code found in Starter Window Object Activity Files.
Refer to the documentation:
If you have completed this activity, work through the following challenge with your partner to further your knowledge:
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);
// Logs window object
console.log(window);
// Logs reference to the document in the window object
console.log(window.document);
// Logs root element of document.
console.log(document.documentElement);
// Returns head element of current document
console.log(document.head);