Use localStorage to store and get user perfered color theme

Solution retrospective
The calculator allows the user to add input from the keyboard but i feel that this particular functionality can be improved or there is a better way of doing it. So guy plaese give it a review and send in your feedback.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @ChamuMutezva
Hi Peter junior mendy
Nice work so far, here are some of the things that you can look at
- Generally , the first heading of your site should be an
h1
element and another important thing about heading elements is that they should follow a sequential order without skipping headings - the theme switcher is best handled with a set of radio buttons - correct semantic html improves accessibility.
- as for the keyboard use, the calculator should only allow inputs from digits and related keys, it shouldn't allow keypresses from every element. Inputs such as below shoud be avoided
nota980...//4
and at the same time the calculator should not accept more than one decimal point. - a calculator should have a maximum number that it can take
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
- an number that is divided by zero is not equal to
zero
- try the following calculation
0.1 + 0.2
happy coding
- Generally , the first heading of your site should be an
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord