There is no way to insert break. during the execution of for

for (let iBoth I < 1000000 th IPP) {
console.log (i)
}
this way of writing must print out 1 "99999

.

if I want him to suddenly stop at a certain value and change how to write (can"t add if to it)

Mar.03,2021

it's too easy to stop outside the for loop.


for(let i=0;i<100000;iPP){
console.log(i)
if(i==100)break;
}

that's what you think. If you have time to ask questions, you might as well try
without the if version

.
var a=100
for(let i=0;i<a;iPP){
i==50?a=51:console.log(i);
}
Menu