Skip to content
Quiz · Final project · lesson 2 of 7

Quiz — pop order

What does the program print?

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

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