I need to build a kind of "game" for my home work the mission is to give the first player to choose a number and the second player need to guesses the number . there is one problem that when the first player typing the number it is reveal to the second user so my question is how to make a asterisk that the other player will not see the data(this is the main mission on this exercise)?
this is my code
<html>
<head>
<script type="text/javascript">
var num1 = parseInt(prompt('Enter your number.'));
var num2 = parseInt(prompt('try gusses the number'));
var theBiggerNumber = (num1==num2)?alert('you win'):alert('you lost');
</script>
</head>
</html>