Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add to an array

var ar = ['one', 'two', 'three'];
ar[3] = 'four'; // add new element to ar
Source by www.dyn-web.com #
 
PREVIOUS NEXT
Tagged: #add #array
ADD COMMENT
Topic
Name
5+7 =