Team of Players
Lesson 17 of 18 in Coddy's Array Methods in JavaScript course.
We're building a team of 5 players. Let's assume you can remove, add and shift a player to a different position if their performance excels.
Challenge
EasyCreate an array named team containing the names of 5 players.
The last player on the list is underperforming and needs to be removed, Remove the last player.
You have to expand the team by adding two new players in the list. Add two new players in the list.
The first player on the list is performing exceptionally well, you need to move(shift) the player from the list to confirm. shift first player to qualified players list.
Finally, determine the current team size in need of retraining. (Log the team size)
Try it yourself
// Write code here