Posts by Ivan Silva • 3 points
1 post
-
0
votes4
answers91
viewsQ: How to transform a "for" repeat code into "while" in Javascript?
var ordinais = ['primeira', 'segunda', 'terceira', 'quarta']; var media=0; for (var i = 0; i < ordinais.length; i++) { var nota = prompt("Informe a " +…