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
JavaScript
0/50 solved · 0%
All lessons
lesson
code
Async · medium
28. Promises
Values that arrive later.
Write `delayed(value)` returning a Promise that resolves to `value`.
Required in your answer:
new Promise
Reveal solution
Run & check
Reset
Runs in a sandboxed worker
function delayed(value) { // TODO return new Promise(...) }
Output appears here.
← 27. throw & try/catch
29. async / await →