Skip to content
Quiz · Arrays · lesson 8 of 13

Quiz — two names for one array

What does the program print?

JavaScript
const a = [1, 2];
const b = a;
b.push(3);

console.log(a.length, a === [1, 2, 3]);

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