Window, Location and History
window is the global object of the browser. location reads and changes the URL, history moves back and forward and navigator describes the browser.
Example
console.log(typeof window.innerWidth, typeof location.href);
console.log(typeof history.length, typeof navigator.userAgent);Exercise
Current page address.
location.Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.