Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add in array

const arr = ['First item', 'Second item', 'Third item'];

arr.push('Fourth item');

console.log(arr); // ['First item', 'Second item', 'Third item', 'Fourth item']
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #add #array
ADD COMMENT
Topic
Name
3+1 =