Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript append element to array

var arr = [
  "Hi",
  "Hello",
  "Bonjour"
];

// append new value to the array
arr.push("Hola");

console.log(arr);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #append #element #array
ADD COMMENT
Topic
Name
7+6 =