Web Tools Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu February 14, 2023 › #Array #Javascript

Which of the following is the correct syntax for looping through an array in JavaScript?

  1. A) for (let i=0; i < array.length; i++)
  2. B) for (i=0; i < array.length; i++)
  3. C) for (i=array.length; i++)
  4. D) forEach( let i=0; i < array.length; i++)

Answer: A) for (let i=0; i < array.length; i++)

Explanation: ....

save
listen
AI Answer
Write Your Answer
loading
back
View All