0
wpm
100%
acc
30
left
JavaScriptstart typing...
class Stack { constructor() { this.items = []; } push(item) { this.items.push(item); } pop() { return this.items.pop(); } peek() { return this.items[this.items.length - 1]; } isEmpty() { return this.items.length === 0; } }
ยทtab = restart