We don't have append function for Array in javascript, but we have push and unshift, imagine you have the array below:
var arr = [1, 2, 3, 4, 5];
and we like append a value to this array, we can do, arr.push(6) and it will add 6 to the end of the array:
arr.push(6); // return [1, 2, 3, 4, 5, 6];
also we can use unshift, look at how we can apply this:
arr.unshift(0); //return [0, 1, 2, 3, 4, 5];
They are main functions to add or append new values to the arrays.