Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what is the modern syntax for iterating through array using for loop in javascript

let friends=["jony","tom","Tejas"];
       friends.forEach(
           function f(i){
               console.log(i);
           }
       )
 
PREVIOUS NEXT
Tagged: #modern #syntax #iterating #array #loop #javascript
ADD COMMENT
Topic
Name
1+6 =