window.location.protocol = “http:” window.location.host = “css-tricks.com” window.location.pathname = “/example/index.html” window.location.search = “?s=flexbox”const postID = (new URLSearchParams(window.location.search)).get('post');