JavaScript Window btoa()
JavaScript Window btoa()
The btoa() method is used to encode a base-64 string. It uses the A-Z, a-z, 0-9, +, / and = characters to encode the string. Its opposite is atob() which is used to decode the base-64 string.
Syntax:-
Its syntax is:- window.btoa(string)
Return:-
Its return is:- an encoded string
Further Explanation:-
Parameter | Description |
string | Required. The string we want to encode. |