Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript python like for loop

const colors = ["green", "red", "white"]

for (let i in colors) {
  console.log("color: ", colors[i])
}
/* output: color: green
		   color: red
           color: white 
*/
 
PREVIOUS NEXT
Tagged: #javascript #python #loop
ADD COMMENT
Topic
Name
3+2 =