Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
window.btoa() Method in Window Object of Javascript Syntax with Examples
3187 Views
Usage 
The btoa() method is used to encodes given string into base-64 values.
Example 
window.btoa(string value)
Output
var string = "Welcome to Javascript";
var encoding = window.btoa(string);
document.write("Encoded String: " +encoding);
Output 
Encoded String: V2VsY29tZSB0byBKYXZhc2NyaXB0
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details