Posts by Crabominable • 1 point
1 post
-
-3
votes1
answer49
viewsQ: I cannot find the error in this simple issue of javascript programming in which I need to check how many times the letter "o" appears in the sentence
var frase = "The Lord of The Rings"; var letra = "o"; function vezesLetraAparece(frase, letra) { var resultado = 0; var indice; for…