Java skrypt Dodaj element do tablicy

// initialize array
var arr = [
  "Hi",
  "Hello",
  "Bonjour"
];

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

console.log(arr);
 Run code snippetHide results
Cloudy Cassowary