Let's Talk About Window Location Object In Javascript
A Thread ๐งตโก
Window Location Object
The `window.location` method returns a Location object. This gives you information about the page's current location. However, there are several ways to get to the Location object.
Window Location Properties
`location.origin` โ Base URL (Protocol + hostname + port number)
`location.protocol` โ Protocol Schema (`http`: or `https`)
`location.host` โ Domain name + port
`location.hostname` โ Domain name