Consider the following code snippet:
const colors = ['red', 'blue', 'green', 'yellow'];
const removedColor = colors.shift();
console.log(removedColor);
What will be the output of the console.log statement?
Consider the following code snippet:
const colors = ['red', 'blue', 'green', 'yellow'];
const removedColor = colors.shift();
console.log(removedColor);
What will be the output of the console.log statement?