Update some browser snippet descriptions
This commit is contained in:
@ -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'
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user