hi everyone!!!
how are you?
i'm trying to make some game using while loop
this is my code but, Unfortunately it doesn't work
:(
please help me
<html>
<SCRIPT LANGUAGE='javaScript'>
var puzzle=rabbit;
var input;
var i=0;
input=window.prompt('White and fast with four legs ??guess the answer',' ');
while(puzzle != input){
alert('hehe try againe please');
input=window.prompt('White and fast with four legs ??guess the answer',' ');
alert(' i will give u a hint');
input=window.prompt('White and fast with four legs ??guess the answer',' ');
alert('its kind of animal');
input=window.prompt('White and fast with four legs ??guess the answer',' ');
alert(' i dont like it');
input=window.prompt('White and fast with four legs ??guess the answer',' ');
alert('with big ears');
input=window.prompt('White and fast with four legs ??guess the answer',' ');
i++
}
alert('thats right');
</html>
</SCRIPT>