I would like some explanation on this part of the code.
I know what the code is doing but I do not know how it is doing it.
I know n is initialising while false and checking it again but how is it initialising and how is it checking the count.
let n = 1;
let check = false;
for (let i = 1; check == false; i++) {
if (i % 2 === 1) {
console.log(${i} is odd
);
if(n == 10)
check = true;
n++;
}
}