Foundations
Push Mutates
Push Mutates
push adds an item to the end of an existing array. It changes that array instead of creating a separate one.
Your task: Add "functions" to the end of roadmap, then log the updated array.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Push Mutates
push adds an item to the end of an existing array. It changes that array instead of creating a separate one.
Your task: Add "functions" to the end of roadmap, then log the updated array.