We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ebda86 commit dad7fddCopy full SHA for dad7fdd
chapter03/02-UsingStacks.js
@@ -1,4 +1,4 @@
1
-let stack = new Stack2();
+let stack = new Stack3();
2
console.log(stack.isEmpty()); //outputs true
3
stack.push(5);
4
stack.push(8);
@@ -15,10 +15,10 @@ let stack = new Stack2();
15
16
//how to ensure true privacy
17
//in case using Stack 2 uncomment code below
18
-let objectSymbols = Object.getOwnPropertySymbols(stack);
+/*let objectSymbols = Object.getOwnPropertySymbols(stack);
19
20
console.log(objectSymbols.length); // 1
21
console.log(objectSymbols); // [Symbol()]
22
console.log(objectSymbols[0]); // Symbol()
23
stack[objectSymbols[0]].push(1);
24
- stack.print(); //5, 8, 1
+ stack.print(); //5, 8, 1*/
0 commit comments