Skip to content

Instantly share code, notes, and snippets.

@chepe263
Last active October 23, 2018 16:34
Show Gist options
  • Save chepe263/0052cb30a2ed2653c8eff22ef2d675eb to your computer and use it in GitHub Desktop.
Save chepe263/0052cb30a2ed2653c8eff22ef2d675eb to your computer and use it in GitHub Desktop.
The alphabet as js array
abc.forEach(function(e){
html += `
<span class="letra" data-letra="${e}">
${e}
</span>
`;
});
document.getElementById("letras_nombre").innerHTML = html;
abc = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "ñ"];
numbers = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
/*
abc
abecedario
alphabet
the abc
numbers from 1 to 10
numbers from one to ten
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment