Skip to content

Instantly share code, notes, and snippets.

@luislobo14rap
Created March 4, 2020 14:21
Show Gist options
  • Select an option

  • Save luislobo14rap/867d8289310a1d31bc8fe0042d0041a6 to your computer and use it in GitHub Desktop.

Select an option

Save luislobo14rap/867d8289310a1d31bc8fe0042d0041a6 to your computer and use it in GitHub Desktop.
native-escapes.js
// native-escapes.js v1
let escape_ = escape('Á');
console.log(escape_);
console.log( unescape(escape_) );
let encodeURI_ = encodeURI('Á');
console.log(encodeURI_);
console.log( decodeURI(encodeURI_) );
let encodeURIComponent_ = encodeURIComponent('Á');
console.log(encodeURIComponent_);
console.log( decodeURIComponent(encodeURIComponent_) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment