Created
February 19, 2018 00:58
-
-
Save sun1shayina/0388ca8cb1eeb7239fb51e8c79e38625 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My Guessing Game</title> | |
<script type="text/javascript" src="loops.js"></script> | |
</head> | |
<body> | |
<p> Thank you for using guessing game compagny </p> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert("this our guessing game, from 0 until 9"); | |
var guessnumber=5; | |
var guess= prompt("choose your particular number "); | |
if (guessnumber==5){ | |
alert("its 5 ,u win"); | |
document.write(" Congratulation my dear"); | |
} | |
else{alert (" try to guess again"); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment