all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
5
Task/Stack/JavaScript/stack-1.js
Normal file
5
Task/Stack/JavaScript/stack-1.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
var stack = [];
|
||||
stack.push(1)
|
||||
stack.push(2,3);
|
||||
print(stack.pop()); // 3
|
||||
print(stack.length); // 2, stack empty if 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue