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 4ffb615 commit 8d4e80fCopy full SHA for 8d4e80f
topics/about_arrays.js
@@ -1,4 +1,3 @@
1
-
2
module("About Arrays (topics/about_arrays.js)");
3
4
test("array literal syntax and indexing", function() {
@@ -32,3 +31,13 @@ test("stack methods", function() {
32
31
equals(stack.pop(), __, 'what will be the first value popped off the stack?');
33
equals(stack.pop(), __, 'what will be the second value popped off the stack?');
34
});
+
35
+test("queue methods", function() {
36
+ var queue = [];
37
+ queue.push("first");
38
+ queue.push("second");
39
+ queue.unshift("third");
40
41
+ equals(queue.shift(), "third", 'what will be shifted out first?');
42
+ equals(queue.shift(), "first", 'what will be shifted out second?');
43
+});
0 commit comments