# My JS Calculator, check pls for bugs

**URL:** <https://forum.freecodecamp.org/t/my-js-calculator-check-pls-for-bugs/31172>\
**Category:** I Built This\
**Created:** [August 25, 2016, 6:59pm UTC](https://forum.freecodecamp.org/t/my-js-calculator-check-pls-for-bugs/31172 "2016-08-25T18:59:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parfum505](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/parfum505/32/9467_2.png) [@Parfum505](https://forum.freecodecamp.org/u/Parfum505)\
**Post date:** [August 25, 2016, 6:59pm UTC](https://forum.freecodecamp.org/t/my-js-calculator-check-pls-for-bugs/31172/1 "2016-08-25T18:59:50Z")

</div>

Hi friends! Here is my JS Calculator [http://codepen.io/Parfum505/full/qNzrqb/](http://codepen.io/Parfum505/full/qNzrqb/) . I used only plain JS, so could you check it for bugs and maybe some feedback ). Thank you.

---

<div class="post-metadata">

**Author:** ![AgathaLynn](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@AgathaLynn](https://forum.freecodecamp.org/u/AgathaLynn)\
**Post date:** [August 25, 2016, 7:14pm UTC](https://forum.freecodecamp.org/t/my-js-calculator-check-pls-for-bugs/31172/2 "2016-08-25T19:14:50Z")

</div>

Layout and everything are nice. It seems like you’re rounding things maybe _too_ much - it’s a little bit unintuitive to get “1 / 10,000 = 0” - but that’s not really an _error_.

The one thing that is off, I think, is the way that you’re using the % button. The percent button on a calculator isn’t usually used to calculate the modulus. It’s a short-hand way of adding and subtracting percents of a total (there’s a decent article [here](https://blogs.msdn.microsoft.com/oldnewthing/20080110-00/?p=23853) explaining how it usually works).

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:08pm UTC](https://forum.freecodecamp.org/t/my-js-calculator-check-pls-for-bugs/31172/3 "2021-06-01T18:08:39Z")

</div>

Closed on June 1, 2021, 6:08pm UTC


