JavaScript Append to Array: a JS Guide to the Push Method

1 · freeCodeCamp.org · April 19, 2021, 2:01 p.m.
Sometimes you need to append one or more new values at the end of an array. In this situation the push() method is what you need. The push() method will add one or more arguments at the end of an array in JavaScript: let arr = [0, 1, 2, 3]; arr....