+ 3
How to add "HIGH SCORE" in this game?
I made an amazing Brain Game using HTML CSS and JavaScript but I have not set high score. so, can you guys tell me that how can I add HIGH SCORE section in this game? https://code.sololearn.com/WMPApIF7X2tv/?ref=app
2 odpowiedzi
+ 5
You have to use if statement like this
Highscore=0
If score>highscore
Highscore=score
Else
Your score=score
Hipe it helps ⛄⛄💕💕💞💞
+ 1
You would need to store the value somewhere and call that up.
Pseudo code
HScore = 0
If Score > HScore
HScore = Score