From 97dc5a234daafbc33ed3fae9a49c69421534109c Mon Sep 17 00:00:00 2001 From: Jyoti Jangid <71806907+jyotijangid@users.noreply.github.com> Date: Sat, 30 Oct 2021 07:47:35 +0530 Subject: [PATCH] Update encodeURIComponent() parameter information (#10123) --- .../reference/global_objects/encodeuricomponent/index.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/files/en-us/web/javascript/reference/global_objects/encodeuricomponent/index.md b/files/en-us/web/javascript/reference/global_objects/encodeuricomponent/index.md index c559a09a4a7d152..795866a58e4d5c2 100644 --- a/files/en-us/web/javascript/reference/global_objects/encodeuricomponent/index.md +++ b/files/en-us/web/javascript/reference/global_objects/encodeuricomponent/index.md @@ -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