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:
xxxxxxxxxx
1
var array = ['A', 'B'];
2
3
array.push('C'); // appends item
4
5
console.log(array); // ['A', 'B', 'C']