Home >
front end > Written in JS a guess the number of small game
Written in JS a guess the number of small game
<meta charset="utf-8" & gt;
Guess Numbers & lt;/title> =0; I -) {var a=prompt (" please enter a 1 ~ 100 Numbers "); C=c - 1 the if (i> 0) {if (a<{b1) alert (" you don't have a guess! A little little a bit! You have "+ I +" chance, come on!" ); } else if (a> {b1) alert (" you don't have a guess! A little a little bit oh! You have "+ I +" chance, come on!" ); } else {b=10 - I; Alert (" congratulations you, you are only using the "+ b + guessed the" right "time); Break}}} the if (c> {0) alert (" prosperous, evening to eat chicken!" )} else {alert (" game over!!!!!!!!!!!!!!!!!!!!! "); } & lt;/script> <body>