The push() method adds one or more elements to the end of an array and returns the new length of the array. It's a documented API call.