New course! Every coder should learn Generative AI!
Try a free lesson+ 1
What's wrong in this calculator using switch case
2 Answers
+ 5
nothing wrong, you just need to parse the input into a number. because right now, its a string
parseInt(yourVar) should do
+ 1
Ohhh my bad... thanks bro