The btoa() method creates a Base64-encoded ASCII string from a binary string (i.e., a string in which each character in the string is treated as a byte of binary data).
An ASCII string containing the Base64 representation of data.
data
btoa on MDN
The binary string to encode.
Generated using TypeDoc
The btoa() method creates a Base64-encoded ASCII string from a binary string (i.e., a string in which each character in the string is treated as a byte of binary data).
Returns
An ASCII string containing the Base64 representation of
data
.See
btoa on MDN