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.
JavaScript
Challenge overview
- Format
- Logic Puzzle
- Category
- JavaScript
- Difficulty
- Beginner
javascriptarrayspushlength
Keep practicing
More coding challenges
Python · Beginner
Pack the Backpack in Python
Use Python append() to add two essential supplies to a backpack list, then print the completed packing list and its new length.
View challengeJavaScript · Beginner
Passing Scores
Loop through JavaScript scores, identify every passing result, and maintain an accurate count without changing the original array.
View challengePython · Beginner
Passing Scores in Python
Combine a Python for loop, conditional check, and accumulator to count how many scores meet or exceed the passing threshold.
View challenge

