متقدم
Code Snippets — JavaScript
Practice typing real-world JavaScript code
0كلمة/دقيقة
100%الدقة
1:00الوقت المتبقي
class Stack { constructor() { this.items = []; } push(x) { this.items.push(x); } pop() { return this.items.pop(); } peek() { return this.items[this.items.length - 1]; } }
أكمل الاختبار لفتح النتائج
أكمل هذا الدرس لتحصل على شهادتك المجانية في الكتابة.