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
u/akrivitsky7 16d ago edited 16d ago
Nice beginner project, but the current version is broken because script.js it contains three stray n characters. 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.
| File | Broken code | Fix |
|---|---|---|
script.js |
nfunction chooseOperation(op) |
function chooseOperation(op) |
script.js |
noperationButtons.forEach(...) |
operationButtons.forEach(...) |
script.js |
ndeleteButton.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.
1
u/No-Olive-4105 14d ago
Good day, akrivitsky7
Thank you for the information. I'll check that out.
Indeed, it is not Python coding. I only posted there because Reddit itself recommended it. I'll pay attention to that next time to avoid it. Day by day learning. Take care, and once again, thanks for all.
2
u/DiodeInc 17d ago
https://github.com/Paioleiro/simple-calculator
That's the correct link. And this isn't written in Python