..and the good Browser keeps crashing


#1

Don't know what I'm doing wrong. I have been working for almost 2 hours on this problem. I have tried every solution offered here. This is my code:

for (var i = 1; i <= 20; i = i++) {

if (i % 5 === 0 && i % 3 === 0) {
console.log("FizzBuzz");
}

else if (i % 3 === 0) {
console.log("Fizz");
}

else if (i % 5 === 0) {
console.log("Buzz");
}

else {
console.log(i);
}

};


#2

Thanks to spaacejam's post (end of post) in another thread for helping me out. I amended my code to look like the below and the crashing stopped.

for (var i = 1; i <= 20; i++) {

if (i % 3 === 0 && i % 5 === 0) {
console.log("FizzBuzz");
}

else if (i % 3 === 0) {
console.log("Fizz");
}

else if (i % 5 === 0) {
console.log("Buzz");
}

else {
console.log(i);
}
};