// define base64 data; in this case the data is the string: "Hello, world!" const base64 = 'SGVsbG8sIHdvcmxkIQ=='; // atob is a built-in function. console.log(atob(base64));