Open mikenath223 opened 1 year ago
https://github.com/sundaymark/calculator-project/blob/71a57f0dd758214e39d263159be9c5b1a7da2ebc/script.js#L14
Use a switch case instead of if else. It's neater to use a switch case than an if else conditional in cases like this with multiple conditions.
i have not learnt switch but i will check that out and implement.
https://github.com/sundaymark/calculator-project/blob/71a57f0dd758214e39d263159be9c5b1a7da2ebc/script.js#L14
Use a switch case instead of if else. It's neater to use a switch case than an if else conditional in cases like this with multiple conditions.