How can I simplify the code for this simple calculator? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

How can I simplify the code for this simple calculator?

https://code.sololearn.com/Wc4zYdUuBQh4/?ref=app my code is obviously too long for such a simple "calculator" but I'm sure there's a way to make it 5 times smaller, any suggestions? ps: the rest button will not work unless I put it In a form tag, which will cause problems.

30th May 2017, 9:48 AM
Abood Cohen
Abood Cohen - avatar
2 Réponses
30th May 2017, 11:00 AM
Sabrina Aviles
0
that is awesome!! big thanks Sabrina :)
30th May 2017, 11:44 AM
Abood Cohen
Abood Cohen - avatar