Getting value in variable to change as value from input change

Hi, I’m trying to make a game that counts when you’re playing to. I decided to allow the players to select to what value they are playing to, so I put an input to check how far they want to play to, and declare a variable which consists of the value of that input.

The problem is when the input changes, the value of variable changes. Any help? Any suggestions? Thanks

If I understood you correctly, you want to update the playingTo variable as the input changes. Am I correct ?

Hi sorry for the late reply, I got the solution hahaha, i should have updated it within an add event listener function. Thank you for taking the time to reply to me

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.