content/snippets/js/s/window-location-cheatsheet.md
The window.location object is particularly useful when working with a page's URL information. Let's take a look at an example of a URL and what each property of the window.location object represents.
const url = 'https://dev.30secondsofcode.org:8000/c/js?page=2&sort=asc#search';
Provided the above URL, here's a quick reference for the properties window.location object:
http: or https:)https:dev.30secondsofcode.org8000dev.30secondsofcode.org:8000https://dev.30secondsofcode.org:8000/c/js?page=2&sort=asc#searchhttps://dev.30secondsofcode.org:8000/c/js?page=2&sort=asc#search