Yashotantra Academy
AI · Blockchain · Cloud · Data
Dark mode active
Learn
Tracks
ABCD
Certification
More
▾
Dark mode active
Learn
Tracks
ABCD
Certification
Study
Theory
Code Lab
Build
Solidity IDE
Staking Sandbox
Simulation
Reference
Wallets
Gas Fees
Explorers
← Code Lab
Node.js
0/50 solved · 0%
All lessons
lesson
code
Foundations · easy
2. Simple Queue: Push
Manage a FIFO queue.
Write a class `Queue` with `push(item)` and `peek()` methods.
Required in your answer:
this.items.push
this.items[0]
Reveal solution
Run & check
Reset
Runs in a sandboxed worker
class Queue { items = []; // TODO }
Output appears here.
← 1. Basic Env Parsing
3. Basic Retry Logic →