Advanced
Code Snippets — JavaScript
Practice typing real-world JavaScript code
0WPM
100%Accuracy
1:00Time Left
class Stack { constructor() { this.items = []; } push(x) { this.items.push(x); } pop() { return this.items.pop(); } peek() { return this.items[this.items.length - 1]; } }
Finish the test to unlock
Complete this lesson to unlock your free typing certificate.