# Stand in Line help please

**URL:** <https://forum.freecodecamp.org/t/stand-in-line-help-please/318140>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [September 29, 2019, 3:58am UTC](https://forum.freecodecamp.org/t/stand-in-line-help-please/318140 "2019-09-29T03:58:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dharris8](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@dharris8](https://forum.freecodecamp.org/u/dharris8)\
**Post date:** [September 29, 2019, 3:58am UTC](https://forum.freecodecamp.org/t/stand-in-line-help-please/318140/1 "2019-09-29T03:58:10Z")

</div>

**Tell us what’s happening:**

Im am not really understanding this lesson here. Could someone help?

**Your code so far**

```js

function nextInLine(arr, item) {
  // Your code here
  testArr.push(item);

  return testArr.shift(); // Change this line
}

// Test Setup
var testArr = [5,6,7,8,9];

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 1)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));

```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36`.

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/stand-in-line)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![DanCouper](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dancouper/32/158608_2.png) [@DanCouper](https://forum.freecodecamp.org/u/DanCouper)\
**Post date:** [September 29, 2019, 9:39am UTC](https://forum.freecodecamp.org/t/stand-in-line-help-please/318140/2 "2019-09-29T09:39:40Z")

</div>

Your solution is not using one of the function parameters. The function has no idea what `testArr` is, because `testArr` is just an array FCC is providing to allow you to check the function works.

---

<div class="post-metadata">

**Author:** ![dharris8](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@dharris8](https://forum.freecodecamp.org/u/dharris8)\
**Post date:** [September 30, 2019, 1:55am UTC](https://forum.freecodecamp.org/t/stand-in-line-help-please/318140/3 "2019-09-30T01:55:11Z")

</div>

So are you saying I shouldn’t be using testArr inside my function?

---

<div class="post-metadata">

**Author:** ![dharris8](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@dharris8](https://forum.freecodecamp.org/u/dharris8)\
**Post date:** [September 30, 2019, 2:01am UTC](https://forum.freecodecamp.org/t/stand-in-line-help-please/318140/4 "2019-09-30T02:01:20Z")

</div>

Im using the parameter “item”.

---

<div class="post-metadata">

**Author:** ![dharris8](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@dharris8](https://forum.freecodecamp.org/u/dharris8)\
**Post date:** [September 30, 2019, 2:05am UTC](https://forum.freecodecamp.org/t/stand-in-line-help-please/318140/5 "2019-09-30T02:05:39Z")

</div>

I figured it out right in my face lol thanks!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 25, 2021, 11:59am UTC](https://forum.freecodecamp.org/t/stand-in-line-help-please/318140/6 "2021-01-25T11:59:35Z")

</div>


