Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery create array

var colors = ['red','blue','green'];

/*// OUTPUT
---------------------------*/
console.log(colors[1]); // Outputs 'blue'
 
PREVIOUS NEXT
Tagged: #jquery #create #array
ADD COMMENT
Topic
Name
5+7 =