my question is about the following code:
let iterations = 0;
top: for (let i = 0; i < 5; i++) {
for (let j = 0; j < 5; j++) {
iterations++;
if (i === 2 && j === 2) {
break top;
}
}
}
console.log(iterations); // OUTPUTS: 13
I am not sure if this is an object, a function or what (I am talking about the top:
) and also I don't know how the OUTPUT is 13, I know that It has 2 iterations, but my question is, does the condition inside the loop ever gets true? or not? and why?
UPDATE: This is a label... Sorry for my ignorance.
Thank you and blessings.