+ 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 ++ } }

20th Dec 2022, 6:55 PM
Parisa 🇸🇴
Parisa 🇸🇴 - avatar
2 Respuestas
+ 1
What's wrong or error you are getting? Mention it. But no output because no output statement.
20th Dec 2022, 7:13 PM
Jayakrishna 🇮🇳
+ 1
My bad, thanks
20th Dec 2022, 7:15 PM
Parisa 🇸🇴
Parisa 🇸🇴 - avatar