JS

JavaScript Code Output Challenge - pop method arra...

25.

What will be the output of the following code?

const cars = ["Toyota", "Honda", "Nissan"];
cars.pop();
console.log(cars);

["Toyota", "Nissan"]

["Honda", "Nissan"]

["Toyota", "Honda", "Nissan"]

["Toyota", "Honda"]