Arrays
Ordered lists with methods like push, map, filter, and reduce.
const nums = [1, 2, 3];
const doubled = nums.map(n => n * 2);
console.log(doubled);Try it Yourself
JavaScript Tutorial
Ordered lists with methods like push, map, filter, and reduce.
const nums = [1, 2, 3];
const doubled = nums.map(n => n * 2);
console.log(doubled);