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
Functions · easy
3. Arrow functions
Shorter syntax, same idea.
Rewrite the adder as an arrow function `const add = (a, b) => ...`.
Required in your answer:
=>
Reveal solution
Run & check
Reset
Runs in a sandboxed worker
// TODO: const add = (a, b) => a + b;
Output appears here.
← 2. Functions & return
4. Template literals →