How many values will be printed to the console?
const notesArray = ['C', 'D', 'E', 'F', 'G', 'A', 'B'];
for (const note of notesArray) {
if (note === 'E') {
break;
}
console.log(note);
}How many values will be printed to the console?
const notesArray = ['C', 'D', 'E', 'F', 'G', 'A', 'B'];
for (const note of notesArray) {
if (note === 'E') {
break;
}
console.log(note);
}Create a free account to access the full topic