We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e981375 commit 8d3a8c0Copy full SHA for 8d3a8c0
modules/data-types/queue.js
@@ -5,7 +5,7 @@
5
* var queue = new dt.Queue();
6
*/
7
var Queue = function(){
8
- // Initialize the stack as a single array
+ // Initialize the queue as a single array
9
this.values = [];
10
};
11
@@ -37,7 +37,7 @@ Queue.prototype.enqueue = function(value) {
37
* console.log(queue);
38
* //=> ['world','hello']
39
*
40
- * stack.dequeue();
+ * queue.dequeue();
41
42
43
* //=> ['world']
0 commit comments