Skip to content

Instantly share code, notes, and snippets.

@rudwolf
Created March 3, 2020 18:57
Show Gist options
  • Save rudwolf/4f1034376a436ff5e0a9d84a3ba3247d to your computer and use it in GitHub Desktop.
Save rudwolf/4f1034376a436ff5e0a9d84a3ba3247d to your computer and use it in GitHub Desktop.
function myFunction() {
var str = "a Raposa Matou o rato no NatO";
var res = str.toLowerCase().split(" ");
var htmlFinal = "";
for(let i = 0; i < res.length; i++){
palavra = res[i].split("");
for(let i2 = 0; i2 < palavra.length; i2++){
console.log(palavra[i2]);
}
}
console.log(htmlFinal);
document.getElementById("demo").innerHTML = htmlFinal;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment