WitzCode
← All tracks
⚡ JavaScript·Arrays & Objects

Arrays & Objects

Store lists and structured data.

Arrays & Objects

const fruits = ['apple', 'kiwi'];
fruits.push('mango');
const user = { name: 'Ada', age: 36 };
console.log(user.name, fruits.length);

Handy array methods: map, filter, find, reduce.

Challenge 1 / 20 XP

Which method adds to the END of an array?

Practical task

Create an array `nums` of 1, 2, 3 and double it with `map`.