Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // starting this not done
- min = 1
- max = 100
- answer = Math.floor(Math.random()*(max-min)+min);
- question = prompt("choose a number (interger)");
- if (question == answer) {
- alert(" you guessed correctly")
- } elseif { (question > answer) ;
- alert("you answered too big!")
- } elseif { (question < answer);
- alert("you answered too small!");
- } else { (question == string)
- alert("stop trying to troll noob");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement