JS_ how to find the high | average score | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

JS_ how to find the high | average score

In this code I'm making, it's not exactly a game, but It would help to have โ€ขโ€ขhigh score... I thought about it, but I'm not sure where to start. Also, โ€ขโ€ขaverage speed too. I'm assuming we start a new variable, or use the score variable... not sure what to do with these variables though. Can u guys help https://code.sololearn.com/WucfuigE2Z58/?ref=app

21st Sep 2019, 5:01 AM
Ginfio
Ginfio - avatar
3 Answers
+ 5
Here is how I made it for average. i put some comments where I changed something. https://code.sololearn.com/WQCaUBM5gOeV/?ref=app
21st Sep 2019, 5:15 AM
๐Ÿ‡ Alex Tuศ™inean ๐Ÿ’œ
๐Ÿ‡ Alex Tuศ™inean ๐Ÿ’œ - avatar
+ 4
Hey, so I made the code for highest. https://code.sololearn.com/WnRKhohiibdX/?ref=app js line 29 and 60,61
21st Sep 2019, 7:28 AM
๐Ÿ‡ Alex Tuศ™inean ๐Ÿ’œ
๐Ÿ‡ Alex Tuศ™inean ๐Ÿ’œ - avatar
+ 3
๐Ÿฏ Alex Tusinean ๐Ÿค Thanks. easier than what i thought.
21st Sep 2019, 5:19 AM
Ginfio
Ginfio - avatar