Files
30-seconds-of-code/snippets/currentURL.md
Soorena 71dbbd3556 Rename current-URL.md to currentURL.md
renamed for consistency
2017-12-18 12:35:03 +03:30

11 lines
187 B
Markdown

### currentURL
Returns the current URL.
Use `window.location.href` to get current URL.
```js
const currentURL = () => window.location.href;
// currentUrl() -> 'https://google.com'
```