Answers for "javascript create list"

140

javascript array

//create an array like so:
var colors = ["red","blue","green"];

//you can loop through an array like this:
for (var i = 0; i < colors.length; i++) {
    console.log(colors[i]);
}
Posted by: Guest on July-01-2019
0

how to crate a list in java script

var list = [1 ,2 ,"apple",true];
Posted by: Guest on March-10-2020

Code answers related to "javascript create list"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language