Here is the link of my calculator.
gitanilsen.github.io/calculatorV1/
For further actions, you may consider blocking this person and/or reporting abuse
Here is the link of my calculator.
gitanilsen.github.io/calculatorV1/
For further actions, you may consider blocking this person and/or reporting abuse
Moein Salari -
Ayoola Damilare -
thinkThroo -
Apache SeaTunnel -
Top comments (4)
Try catching the errors, and not allowing to put more than 1 plus sign (or any other sign) in a row because it errors out and the erro SyntaxError: Unexpected token stays there while stuff is written.
What should I do then please suggest me If I can improve my code.
For the errors, just catch them and show an error message.
To prevent the error like 2 plus signs in a row compare the last character in the string to the one that was pressed.
Thank you for support.I really appreciate your suggestion. I will improve my code..βΊοΈ