demo-projects
demo-projects copied to clipboard
fix(javascript-calculator): removing +0 and -0 from the expression displayed on calculator.
Checklist:
- [x] I have read freeCodeCamp's contribution guidelines.
- [x] My pull request has a descriptive title (not a vague title like
Update index.md
)
Partially closes #49045
With the 6 trailing zeros gone, I think it's still useful to remove any arithmetic involving zeros. That way the expression looks cleaner and the fix can even handle cases where the user types --0
.
Hey maintainers, Before we can merge, how can I tag in @spiritanand as my fellow contributor?
@scissorsneedfoodtoo thanks for the edge case.