Tell us what’s happening:
Hi, I understood the solution but I don’t quite get how it satisfies some of the challenge instructions:
List itemnextInLine(, 5)should return a number. // Is this instruction trying to state something different from the next one?
List itemnextInLine(, 1)should return 1. // Is it because after pushing 1, it becomes the first element in arr (since it is empty in this example (is it?))?
List itemAfter nextInLine(testArr, 10), testArrshould be 10. // No idea.
Can somebody explain, please? Thank you!
Your browser information:
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36.