The site stuck


#1

a bug

The link

i'm doing the exercise, like the instructions, and every time i'm trying to save and submit the site stucks and not reacts.
what should i do?

this is my code, but it's not relevant...

for (var i = 5; i < 51; i + 5) {
	console.log(i);
}

Plaese help me


#2

your i+5 should be i+=5


#3

@exlibrischimex is right, i + 5 will just temporary add 5 to i, it won't update i as we can see here:

i = 5
console.log(i) // 5
console.log(i + 5) // 10
console.log(i) // 5
i += 5
console.log(i) // 10

#4

You're right, but it doesn't check my code at all, it just stucks..
it's a bug, i don't know what to do about it


#5

well, infinity loops are difficult to prevent, did you solve it?


#6

Yes right now I've tried and the problem has solved. thanks.


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.