Created
March 3, 2020 18:57
-
-
Save rudwolf/4f1034376a436ff5e0a9d84a3ba3247d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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