JavaScript Calculator - Feedback please!

hello, I have just finish my JavaScript Calculator Project


1 Like

Looks good but there are a few errors:

  1. 1/3 = 0.3333 and then if you multiply by 3 you get 0.9999. Clearly it should equal 1
  2. If you are enter an operator following another operator the current equation is reset to 0, i.e enter 1 + 1 - / will set the current equation to 0 /
  3. You can have multiple decimal points in a row
  4. You can also have multiple leading zeroes even if they don’t show in the current equation
  5. If you press equals after an operator, you get an error.

Try fixing these. There may be other problems but those are all I can see at the moment.