Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix atob param/return description #38655

Merged
merged 1 commit into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions files/en-us/web/api/window/atob/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ atob(encodedData)
### Parameters

- `encodedData`
- : A binary string (i.e., a string in which each character in the string is treated as a byte of binary data) containing base64-encoded data.
- : A base64-encoded string, using the alphabet produced by {{domxref("Window.btoa()")}}.

### Return value

An ASCII string containing decoded data from `encodedData`.
A binary string containing raw bytes decoded from `encodedData`. Strings in JavaScript are encoded as UTF-16, so this means each character must have a code point less than 256, representing one byte of data.

### Exceptions

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/window/btoa/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ btoa(stringToEncode)
### Parameters

- `stringToEncode`
- : The _binary string_ to encode.
- : The _binary string_ to encode. Strings in JavaScript are encoded as UTF-16, so this means each character must have a code point less than 256, representing one byte of data.

### Return value

Expand Down