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 scopepull/45207/head
parent
98c516c010
commit
3668422083
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue