Skip to content

Instantly share code, notes, and snippets.

@sun1shayina
Created February 19, 2018 00:58
Show Gist options
  • Save sun1shayina/0388ca8cb1eeb7239fb51e8c79e38625 to your computer and use it in GitHub Desktop.
Save sun1shayina/0388ca8cb1eeb7239fb51e8c79e38625 to your computer and use it in GitHub Desktop.
<!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>
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