Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for in js

var colors=["red","blue","green"];
for(let col of colors){
  console.log(col);
}
// red
// blue
// green
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
5+2 =