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
React Native
0/50 solved · 0%
All lessons
lesson
code
Tooling · medium
35. Locale-aware currency formatting
Use Intl to format a fiat value.
Write `formatUsd(amount)` using `Intl.NumberFormat("en-US", { style: "currency", currency: "USD" })`.
Required in your answer:
Intl.NumberFormat
Reveal solution
Run & check
Reset
Transpiled, then run in a sandbox
function formatUsd(amount) { // TODO }
Output appears here.
← 34. Queuing actions while offline
36. Error boundary state transition →