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
11. Array.map
Transform every element.
Write `toGwei(weiValues)` dividing each value by 1e9.
Required in your answer:
.map(
Reveal solution
Run & check
Reset
Runs in a sandboxed worker
function toGwei(weiValues) { // TODO map }
Output appears here.
← 10. Spread & rest
12. Array.filter →