Loops in ECMAScript 6 , whats wrong with my code? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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