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.

JavaScript

Challenge overview

Format
Logic Puzzle
Category
JavaScript
Difficulty
Beginner
javascriptarrayspopreturn-value

Keep practicing

More coding challenges