base 64 in js
// Define the string
var string = 'Hello World!';
// Encode the String
var encodedString = btoa(string);
console.log(encodedString); // Outputs: "SGVsbG8gV29ybGQh"
// Decode the String
var decodedString = atob(encodedString);
console.log(decodedString); // Outputs: "Hello World!"
Also in JavaScript:
- how to check if value is undefines if condition jquery
- jquery on ready
- react starter kit
- create react app and tailwind
- boucle for javascript
- how to push in object in javascript
- how can when click buton scrool to another elemtn
- change view port of svg with javascript
- jspdf attach image file
- javascript format social security number
- tick.json code
- rimraf node.js
- mongodb delete user
- toggle class javascript and jquery
- how to deep copy an object in javascript
- JS glob to regex
- enzyme hasclass example
- share link in express js
- Lazy loading and code splitting in Vue.js
- lastindexof javascript
- angular material theme colors
- javascript json decode
- get set propoties in angular
- get random element from string array java