The push method is an in-built JavaScript method that is used to add a number string object array or any value to the Array. To add an object in the middle use Arraysplice. Javascript Array Concat Method Merge Add Two Arrays Javascript Language Experience Method Javascript Web Development Front End Technology Object Oriented Programming. How to add arrays in javascript . This function is very handy as it can also remove items. For creating a new array you should implement the concat method like this. To add an object at the last position use Arraypush. This method does not change the existing arrays but returns a new array containing the values of the joined arrays. An object can be inserted by passing the object as a parameter to this method. Alert pets00 is a pets01 year old pets02. Var pets new Array. Add a non-numeric property like arrtest 5. Let arr this is the first element this is the second element this is the last element consolelog arr 0 consolelog arr 1...