Simple decimal calculator project
- 29.6k
- 16
- 45
- 203
How can I reduce use if-else blocks here? Simple decimal calculator project
This code displays a simple decimal calculator with operations like add, subtract, multiply and divide. It also has a function to clear the result.
I try to reduce code repetition. I still think I used a lot of unnecessary if-elseif-else
blocks here but tried my best. How can I reduce use if-elseof if-else
blocks here?
How can I reduce use if-else blocks here?
I try to reduce code repetition. I still think I used a lot of unnecessary if-else blocks here but tried my best. How can I reduce use if-else blocks here?
Simple decimal calculator project
This code displays a simple decimal calculator with operations like add, subtract, multiply and divide. It also has a function to clear the result.
I try to reduce code repetition. I still think I used a lot of unnecessary if-else
blocks here but tried my best. How can I reduce use of if-else
blocks here?
this is one of my first basic projects a calculator. The js code consisted of 374 lines of code in the first version of code. This is a new version. I try to reduce code repetition and now it consist of about 74 lines of code. I still think I used a lot of unnecessary if-else blocks here but tried my best. How can I will appreciate any feedback. Thank you.reduce use if-else blocks here?
this is one of my first basic projects a calculator. The js code consisted of 374 lines of code in the first version of code. This is a new version. I try to reduce code repetition and now it consist of about 74 lines of code. I still think I used a lot of unnecessary if-else blocks here but tried my best. I will appreciate any feedback. Thank you.
I try to reduce code repetition. I still think I used a lot of unnecessary if-else blocks here but tried my best. How can I reduce use if-else blocks here?
- 88k
- 14
- 104
- 325