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
1. Basic Env Parsing
Extract and cast environment variables.
Write `getEnvPort(env)` that returns `Number(env.PORT)` or `3000` if not set.
Required in your answer:
env.PORT
3000
Reveal solution
Run & check
Reset
Runs in a sandboxed worker
function getEnvPort(env) { // TODO }
Output appears here.
2. Simple Queue: Push →