const arr = [1, 2, 3, 4];
arr.push(5);
console.log(arr);
//output [1, 2, 3, 4, 5]
This Pen is owned by Amy on CodePen.
See more by @amyhe1995 on CodePen
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.