fix: remove <code> tags around word queue (#35393)

pull/30845/head^2
Randell Dawson 2019-03-04 07:12:29 -08:00 committed by Tom
parent 61b7ac8948
commit 99c7f28530
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ videoUrl: 'https://scrimba.com/c/ca8Q8tP'
## Description
<section id='description'>
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 <code>queue</code> and old items are taken off from the front of the <code>queue</code>.
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.
Write a function <code>nextInLine</code> which takes an array (<code>arr</code>) and a number (<code>item</code>) as arguments.
Add the number to the end of the array, then remove the first element of the array.
The <code>nextInLine</code> function should then return the element that was removed.