How many values will be printed to the console?
function logColors() {
for (let color of arguments) {
if(color === 'Yellow') continue
console.log(color);
}
}
logColors('White', 'Blue', 'Red', 'Yellow');How many values will be printed to the console?
function logColors() {
for (let color of arguments) {
if(color === 'Yellow') continue
console.log(color);
}
}
logColors('White', 'Blue', 'Red', 'Yellow');Create a free account to access the full topic