+ 1
Loops in ECMAScript 6 , whats wrong with my code?
Write a program to count and output to the console the number of students who pass the exam. let scores = [68,95,54,84,77,75,63,74,69,80,71,63]; var count =0; for(let sc of scores){ if(sc >= 70){ count ++ } }
2 Respuestas
+ 1
What's wrong or error you are getting? Mention it.
But no output because no output statement.
+ 1
My bad, thanks