Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to print elements in an array in javascript

var array = [1,2,3]

for(var i = 0; i < array. length ; i++){
  
console. log(array[i])
}
 
PREVIOUS NEXT
Tagged: #print #elements #array #javascript
ADD COMMENT
Topic
Name
1+1 =