I'm running the below code to print out numbers from 0 to 6. It works, but I can't figure out the reason why the code prints out the number 7. Why is the code still running even though number variable is now 7:
let number = 0;
while (number <= 6) {
console.log(number);
number = number + 1
}
I expected the code to only print up to 6 and then stop as any number above 6 would make the expression false