How to encoded and decodes a string base-64 ASCII encoding WindowBase64 in JavaScript

1 Answer

0 votes
const encode = window.btoa("JavaScript"); 
console.log(encode);
 
const decode = window.atob(encode); 
console.log(decode);

 
/*
run:
 
SmF2YVNjcmlwdA==
JavaScript
    
*/

 



answered Aug 17, 2016 by avibootz
edited 10 hours ago by avibootz

Related questions

2 answers 252 views
1 answer 323 views
1 answer 174 views
1 answer 207 views
207 views asked Mar 1, 2019 by avibootz
...