+ 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

26th May 2022, 4:58 PM
Suraj Mishra
Suraj Mishra - avatar
2 Respostas
+ 5
You have to use if statement like this Highscore=0 If score>highscore Highscore=score Else Your score=score Hipe it helps ⛄⛄💕💕💞💞
28th May 2022, 2:38 AM
Rakshit Pahel
Rakshit Pahel - avatar
+ 1
You would need to store the value somewhere and call that up. Pseudo code HScore = 0 If Score > HScore HScore = Score
26th May 2022, 6:55 PM
Ausgrindtube
Ausgrindtube - avatar