Skip to content

Commit

Permalink
Update encodeURIComponent() parameter information (#10123)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyotijangid committed Oct 30, 2021
1 parent ac7aec8 commit 97dc5a2
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -21,17 +21,16 @@ characters).
## Syntax

```js
encodeURIComponent(str);
encodeURIComponent(uriComponent);
```

### Parameters

- `str`
- : String. A component of a URI.

- `uriComponent`
- : A string, number, boolean, null, undefined, or any object. Before encoding, the `uriComponent` gets converted to string.
### Return value

A new string representing the provided string encoded as a URI component.
A new string representing the provided _uriComponent_ encoded as a URI component.

## Description

Expand Down

0 comments on commit 97dc5a2

Please sign in to comment.