1let friends=["jony","tom","Tejas"];
2 for(elements of friends){
3 console.log(elements);
4 }
1let friends=["jony","tom","Tejas"];
2 friends.forEach(
3 function f(i){
4 console.log(i);
5 }
6 )