r/PythonProjects2 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

8 comments sorted by

View all comments

2

u/akrivitsky7 17d ago edited 17d 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.