Files
30-seconds-of-code/snippets/current-URL.md
2017-12-07 02:15:01 +02:00

8 lines
119 B
Markdown

### Current URL
Use `window.location.href` to get current URL.
```js
var currentUrl = _ => window.location.href;
```