How to get current page url in JavaScript

URL
Last updated Dec 16, 2017
window.location.href;
https://codetogo.io/how-to-get-current-page-url-in-javascript/