I wanted to make a game which asked a number from the user from 1 to 10 and generates a random number and if the generated number is the same as that of entered number then alert you won else you lose but it always shows you lose and I also want if user field is empty alert enter number bur still it alerts you lose. please have a look into this.
Asked
Active
Viewed 14 times
-2
-
Please add your code and explain where and how it fails. – jarmod May 06 '22 at 18:25
-
Please share your current code so that we can understand what you are doing – Donald Koscheka May 06 '22 at 18:25
-
"*please have a look into this.*" Into *what*, exactly? You haven't included your code as a [mre]. See [ask] – esqew May 06 '22 at 18:25