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
Numbers · medium
36. BigInt for wei
Token amounts overflow Number.
Write `addWei(a, b)` taking two decimal strings and returning their sum as a string, using BigInt.
Required in your answer:
BigInt
Reveal solution
Run & check
Reset
Runs in a sandboxed worker
function addWei(a, b) { // TODO }
Output appears here.
← 35. Debounce
37. formatUnits by hand →