Queue challenge! Help!

Queue challenge! Help!
0.0 0


Im missing some codes i don’t know what to add! Pls help!


Your line #4 is the problem.


Why are you pushing arr.length+1 to the arr when the challenge instructions tell you to add the number (item) to the end of the array?


Right @rmdawson71 got the point, you will end up with length of array as members. You should push numbers.