Loops in ECMAScript 6 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Loops in ECMAScript 6

Fill in the blanks to iterate through all the characters using the for...of loop. ______(let ch _______ "SoloLearn") { console.log(ch); } can anyone help me to solve this question?

12th Aug 2022, 5:22 PM
Ronit Zinzuvadiya
Ronit Zinzuvadiya - avatar
1 Answer
0
"SoloLearn".split('').forEach(function(ch) { document.write(ch, "<br>"); console.log(ch); });
12th Aug 2022, 6:02 PM
SoloProg
SoloProg - avatar