(value)
| 16 | this.top = null |
| 17 | } |
| 18 | push(value) { |
| 19 | const node = new Node(value) |
| 20 | if (this.top === null) { |
| 21 | this.top = node |
| 22 | } else { |
| 23 | node.next = this.top |
| 24 | this.top = node |
| 25 | } |
| 26 | } |
| 27 | pop() { |
| 28 | if (this.top === null) { |
| 29 | return -1 |
no outgoing calls
no test coverage detected