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.
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.
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..βΊοΈ