+ 3
Making calculator using if else in Java Script.
Whats wrong in this?? I'm new in js so i don't know much about it. https://code.sololearn.com/WwWrYAukVi6v/?ref=app
5 Réponses
+ 7
2 errors
In row 5 remove parseint, you want a String not an Int.
In all 4 if statements change = to ==
you are not assigning, rather comparing.
https://code.sololearn.com/WMs38yag41tR/?ref=app
+ 3
@Charan Leo25 in switch (expression) what should i write???
+ 2
https://code.sololearn.com/WwWrYAukVi6v/?ref=app
+ 2
but when i choose - or * or / it never do that.... it always add the number