Современный JavaScript для синтаксиса петли
let friends=["jony","tom","Tejas"];
for(elements of friends){
console.log(elements);
}
Helpful Hedgehog
let friends=["jony","tom","Tejas"];
for(elements of friends){
console.log(elements);
}
let friends=["jony","tom","Tejas"];
friends.forEach(
function f(i){
console.log(i);
}
)