0

Creating a calculator with JS issue

I'm creating a calculator with JS, and the program is not completed, but so far it should be able to add, but instead of that I get an error message that says Uncaught SyntaxError: Unexpected end of input line 104, I'm not sure how to fix it, so can someone help, please? https://code.sololearn.com/WBkSgB48DpWV/#html

21st Mar 2020, 1:30 AM
Danial Azadpour
Danial Azadpour - avatar
2 Answers
+ 6
You are missing one more closing braces after line no 104. You should add }); at the end of the program. To debug this type of problem you should check each and every opening and closing braces. It mostly happen in long program when we miss this type of small mistake. We can find this error easily on other languages but JavaScript and Html never show where is problem. So we have to be careful. Avoid to write all code into single function. Try to make small functions and call them in single function.
21st Mar 2020, 3:03 AM
A͢J
A͢J - avatar
0
Thank you AJ, that fixed it!
21st Mar 2020, 1:49 PM
Danial Azadpour
Danial Azadpour - avatar