JS

JavaScript Code Output Challenge - output of the f...

26.

What will be the output of the following code?

const fruits = ["apple", "banana", "cherry"];
const removedFruit = fruits.pop();
console.log(removedFruit);

undefined

cherry

banana

apple