What if?

Report a typo

What happens if we try to run the code below?

const usersList = ['John', 'Larry', 'Maria'];

const newUsers = [];

for(let user of usersList) {
  usersList.push('Bob');
  newUsers.push(user);
}

console.log(newUsers);
Select one option from the list
___

Create a free account to access the full topic