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
Array methods · easy
12. Array.filter
Keep only what matches.
Write `confirmed(txs)` keeping objects whose `status === "confirmed"`.
Required in your answer:
.filter(
Reveal solution
Run & check
Reset
Runs in a sandboxed worker
function confirmed(txs) { // TODO filter }
Output appears here.
← 11. Array.map
13. Array.reduce →