Skip to content
Quiz · Arrays · lesson 3 of 13

Quiz — what push returns

What does the program print?

JavaScript
const a = [1, 2];
const r = a.push(7);

console.log(r, a.length);

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way