Challenge set
JavaScript Arrays
Build practical JavaScript array skills through six Challenges covering access, updates, queues, slices, splices, and ordered collections.
Work through the collection
Challenges in This Set
- 01
JavaScript
Pack the Backpack
Use JavaScript push() to add two essential supplies to a backpack array, then report the completed packing list and its new length.
50XPBeginner - 02
JavaScript
Remove the Last Track
Use JavaScript pop() to remove the final track from a playlist, capture the returned value, and print both the removed track and remaining songs.
50XPBeginner - 03
JavaScript
Update the Guest List
Update a JavaScript guest list by replacing one array item through its index, then print the corrected list without adding another guest.
50XPBeginner - 04
JavaScript
Priority Queue
Manage a JavaScript support queue with shift() and unshift(), recording the served customer before placing an urgent customer at the front.
50XPBeginner - 05
JavaScript
Weekend Schedule
Use JavaScript slice() to copy the weekend plans from a weekly schedule, then print both arrays to prove the original schedule stayed unchanged.
50XPBeginner - 06
JavaScript
Repair the Inventory
Repair a JavaScript inventory with splice() by replacing one unavailable item with two new supplies, then report what was removed and the final list.
50XPBeginner

