Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for of loop ecmascript6

var a = ['a','b','c'];

for (let elem of a){
    console.log(elem);
}
// output: 
// 'a'
// 'b'
// 'c'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
4+5 =