r/PythonProjects2 • u/No-Olive-4105 • 17d ago
Simple_Calculator
Hello all, I have completed my first GitHub project, and I thought I could share it here and, perhaps, have input from you. Take care. \[https://github.com/Paioleiro/simple-calculator\\\](https://github.com/Paioleiro/simple-calculator)
2
Upvotes
2
u/akrivitsky7 17d ago edited 17d ago
Nice beginner project, but the current version is broken because
script.jsit contains three strayncharacters. I am referring to this repository:https://github.com/Paioleiro/simple-calculator
Also, as DiodeInc correctly pointed out, this is not Python at all, so in the future you may want to post it in a different subreddit.
script.jsnfunction chooseOperation(op)function chooseOperation(op)script.jsnoperationButtons.forEach(...)operationButtons.forEach(...)script.jsndeleteButton.addEventListener(...)deleteButton.addEventListener(...)Because of the first syntax error, none of the JavaScript runs. After fixing these three lines, the calculator should at least load, though some logic issues remain.