Read the instructions for these carefully. For this exercise, you’ll be modifying the array arr and returning a particular value that it asks for in the question. Good luck!
Whenever you are stuck on a challenge, it is best to break it up and solve it one step at a time.
The first step is write the code for this part of the directions.
Add the number to the end of the array,
Try writing code for that.
If you get stuck, you can use google to figure out what to use to add numbers at the end of the array.
Once you figure that out, then tackle the second part.
then remove the first element of the array.
The nextInLine function should then return the element that was removed.
Again, if you get stuck try to google what to use to remove the first element of the array.
You can also reply back here with what you have tried and we can help you from there.