Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

atob javascript

const encodedData = btoa('Hello, world'); // encode a string
const decodedData = atob(encodedData); // decode the string
Comment

atob javascript

The atob() and btoa() methods allow authors to transform content to and from the base64 encoding.

In these APIs, for mnemonic purposes, the "b" can be considered to stand for "binary", and the "a" for "ASCII". In practice, though, for primarily historical reasons, both the input and output of these functions are Unicode strings.

From : http://www.w3.org/TR/html/webappapis.html#atob
Comment

PREVIOUS NEXT
Code Example
Javascript :: compare two array in javascript 
Javascript :: cors policy javascript 
Javascript :: useeffect 
Javascript :: js function 
Javascript :: liquid object 
Javascript :: axios error message 
Javascript :: javascript compose function 
Javascript :: apollo server change port 
Javascript :: nodejs express server img src 
Javascript :: op in sequelize 
Javascript :: this.setstate is not a function 
Javascript :: hypot in javascript 
Javascript :: add webpack to react project tutorial 
Javascript :: chrome console angular scope 
Javascript :: how to convert string to snake case in javascript 
Javascript :: loop through array react native 
Javascript :: node.js web server 
Javascript :: knexjs whereIn 
Javascript :: javascript combine objects 
Javascript :: innertext of input js 
Javascript :: json parse returns object 
Javascript :: js push array to array 
Javascript :: jszip create zip file 
Javascript :: Svg as a component react 
Javascript :: javascript promise 
Javascript :: delete a label jquer 
Javascript :: promise.all 
Javascript :: javascript design patterns pdf 
Javascript :: delete document mongoose 
Javascript :: capitalize all letters jquery 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =