EN
JavaScript - append item to array
0
points
In this article, we would like to show you how to append an item to an array using JavaScript.
Quick solution:
// ONLINE-RUNNER:browser;
var array = ['A', 'B'];
array.push('C'); // appends item
console.log(array); // ['A', 'B', 'C']