Skip to content

Instantly share code, notes, and snippets.

@YerlinMatu
Last active June 11, 2017 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YerlinMatu/b326b7b8a690b4fae1ba5e53b4df377f to your computer and use it in GitHub Desktop.
Save YerlinMatu/b326b7b8a690b4fae1ba5e53b4df377f to your computer and use it in GitHub Desktop.
Ascii - potencial
<button onclick="Hola()">Dame</button>
<div id="demo"></div>
function PotencialesAscii() {
var remplazos = ['¹','²','³','⁴','⁵','⁶','⁷','⁸','⁹'];
for(let item = 0; item<remplazos.length; item++){
document.write(remplazos[item].charCodeAt(0)+'<br>');
}
}
PotencialesAscii();
@YerlinMatu
Copy link
Author

Convert number exponentials in char acsii...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment