📖 INDEX
LOADING ENGINE...
JavaScript .push()
Master array manipulation and dynamic data handling.
array_push.js
1 / 6
📦
Tutor:The .push() method adds one or more elements to the end of an array. It is a 'mutating' method because it changes the original array directly.
Method Mastery
Unlock nodes by learning how to manipulate arrays.
The .push() Method
In JavaScript, arrays are dynamic. The push() method is the most common way to add data to an existing array. It modifies the array in place and returns the new length.
Logic Check
What does array.push('item') return?