.btoa()

Description

Encodes the current string into Base-64.

Parameters

btoa takes no parameters.

Usage On Strings

encoded = "Hello world".btoa()
// "SGVsbG8gd29ybGQ="

Last updated

Was this helpful?