Posts by masterprog • 11 points
1 post
-
0
votes2
answers154
viewsQ: Why is the average score always "Nan"?
I have a problem calculating the average of several notes typed by the user. The function returns only Nan. function calcularMedia() { var nota = parseInt(prompt("Digite uma nota:")); for (;;) { var…