Member-only story

Math Sprint Game with Javascript

YvonneDev
4 min readOct 22, 2020

--

Features:

countdown to show game

the math equations generated with Math()

seperate wrong and correct equations and added boolean

compare the equationArray with PlayerGuessArray

store bestscore to localStorage and compare when start next round again

CODE Github

DEMO

HTML

four radio input in the form.

Bestscore show in the span.

when submitting the selection, go to the countdown page.

All the math equations were created in the item-container with JS.

And the right ang wrong selection with onclick event.

After finishing, go to the score page.

the times calculated within JS.

When clicking the playAgain, go back to the splash page but the best score will be stored in the…

--

--

YvonneDev
YvonneDev

Written by YvonneDev

❤️Front-end Web Development self-taught *share what I learned*

No responses yet