What's wrong?


#1



var meow = 627/11
var mao = true
var Kappa = 350
var rawr = Kappa/7

for (var i=7; meow>rawr; i+=2) {
    console.log(i);
}

while (mao) {
    console.log(" The Kappa is a river demon from Chinese mythology. They have a divot in their head that holds water. The warer keeps them alive.");
    mao=false;
}

do {
    console.log("The Kappa live in rivers and will grab and eat those who mess with their river. You can defeat them by bowing to them. The water pours out, and they turn to stone.");
} while(rawr===Kappa);


#2

This is what seems to be the problem. :slight_smile:


#3

I press save and submit and it freezes


#4

Did you address the problem I pointed out?

Right now it will do that because it is an infinite loop.


#5

I don't understand why it's and infinite loop


#6

You are incrementing i, when you are using meow and rawr in the condition. You should put rawr += 2, instead of i += 2.


#7

oh. okay i'll try it and let you know


#8

It worked! Thank you so much! I even understand what the problem was. :slight_smile: