for...of Loop
A loop that visits the values produced by an iterable.
What is for...of Loop in JavaScript?
for...of Loop — A loop that visits the values produced by an iterable.
for (const pet of pets) {
petNames.push(pet.name);
}
Level: Apprentice · More JavaScript terms at this level
Updated