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
TypeScript
0/50 solved · 0%
All lessons
lesson
code
Foundations · easy
2. Array Types
Define an array of numbers.
Write a function `sum(numbers)` that takes an array of numbers and returns their total.
Required in your answer:
number[]
Reveal solution
Run & check
Reset
Transpiled, then run in a sandbox
function sum(numbers) { // TODO }
Output appears here.
← 1. Primitive Types
3. Tuples →