Tab crashed while doing the Javascript for loop lesson

Hi there,

I was working on [for loops] this morning, and was on lesson 3/10.

The specific block ran was:

// Write your code below for (let i=0; 5>=i<=10;i++){ console.log(i); }

the tab ran out of memory, and I don’t know if this is just a bug or a security issue too.

It’s the middle condition in the loop declaration. You can’t use the math shorthand for this, ie., 5 < i < 10

If you want it to go from 5 to 10, use let i = 5 for the first part, then i <= 10 for the 2nd part.

1 Like

Fixed it, thank you! We have shorthand for coding, but not math lol.