* @param {*} value
(value)
| 33 | * @param {*} value |
| 34 | */ |
| 35 | push(value) { |
| 36 | // Pushing means to lay the value on top of the stack. Therefore let's just add |
| 37 | // the new value at the start of the linked list. |
| 38 | this.linkedList.prepend(value); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * @return {*} |