Iteration count?

Report a typo

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);
}
Enter a number
___

Create a free account to access the full topic