fix: add divider to stand in line challenge in basic javascript section (#45180)

* Fix: Update grammar in PR documnetation

* fix: add divider to stand in line challenge in basic javascript section

* Undo change outside of scope
pull/45207/head
zelf0 2022-02-21 12:14:27 -05:00 committed by GitHub
parent 98c516c010
commit 3668422083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@ dashedName: stand-in-line
In Computer Science a <dfn>queue</dfn> is an abstract <dfn>Data Structure</dfn> where items are kept in order. New items can be added at the back of the queue and old items are taken off from the front of the queue. In Computer Science a <dfn>queue</dfn> is an abstract <dfn>Data Structure</dfn> where items are kept in order. New items can be added at the back of the queue and old items are taken off from the front of the queue.
# --instructions--
Write a function `nextInLine` which takes an array (`arr`) and a number (`item`) as arguments. Write a function `nextInLine` which takes an array (`arr`) and a number (`item`) as arguments.
Add the number to the end of the array, then remove the first element of the array. Add the number to the end of the array, then remove the first element of the array.