I’m trying to get used with #JavaScript and #JQuery ,so I have tried to build this Game:
let the computer guess a random number between 1 to 20,
then I input an manual number.
if the manual number bigger than auto number he write its big number
if it opposite he write its small number ,and if its equal write you are lucky.
the #problem is I want to add a certain number for wrong guesses.
how can I add that number without let the function when I click the button repeat from zero in every click.
this is the code
https://codepen.io/kookii/pen/pojvXvK
any suggests ,please?