# Help i have a problem

**URL:** <https://forum.freecodecamp.org/t/help-i-have-a-problem/377512>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [April 23, 2020, 2:52am UTC](https://forum.freecodecamp.org/t/help-i-have-a-problem/377512 "2020-04-23T02:52:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Imstupidpleasehelp](https://avatars.discourse-cdn.com/v4/letter/i/7ab992/32.png) [@Imstupidpleasehelp](https://forum.freecodecamp.org/u/Imstupidpleasehelp)\
**Post date:** [April 23, 2020, 3:09am UTC](https://forum.freecodecamp.org/t/help-i-have-a-problem/377512/2 "2020-04-23T03:09:32Z")

</div>

> [@freeCodeCamp Challenge Guide: Stand in Line](http://forum.freecodecamp.org/t/freecodecamp-challenge-guide-stand-in-line/18307):
>
> [Stand in Line](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/stand-in-line)Hints Hint 1 The push() method adds an item to the end of an array. Hint 2 The shift() method removes the first element of an array. It also returns the element removed. Hint 3 The function nextInLine uses arr and item. Those are what the tests will use to pass the array elements they will test with. It allows the function to be reusable. Do not hardcode any of the tests inside the function. Solutionsplay_button Solution 1 (Click to Show/Hide)

Don’t just look at the answer, look at the hints. They’re what you need.

---

_[View the full topic](https://forum.freecodecamp.org/t/help-i-have-a-problem/377512)._
