btoa is not defined node js code example Example: btoa is not defined js console.log(Buffer.from('Hello World!').toString('base64'));