Update some browser snippet descriptions

This commit is contained in:
Angelos Chalaris
2020-03-06 09:57:40 +02:00
parent 6ae9cd2fcb
commit 6f77474128
5 changed files with 16 additions and 12 deletions

View File

@ -5,7 +5,7 @@ tags: browser,url,beginner
Returns the current URL.
Use `window.location.href` to get current URL.
Use `window.location.href` to get the current URL.
```js
const currentURL = () => window.location.href;
@ -13,4 +13,4 @@ const currentURL = () => window.location.href;
```js
currentURL(); // 'https://google.com'
```
```