[FRONTEND PROJECT] Questions about the FCC example JS calculator

[FRONTEND PROJECT] Questions about the FCC example JS calculator
0

#1

Here it is: https://codepen.io/freeCodeCamp/full/rLJZrA

It seems like some operations return the wrong answer, e.g

10 * 10 + 2 * 10 + 3 * 1 returns 1023 instead of 123

It also doesn’t support calculating with negative numbers (although I don’t know how big of an issue this is)

Please don’t get this post wrong - I’m not trying to call anyone out or something, just wanted to let you guys know what I noticed while developing my own version (which you can find here: https://codepen.io/barnabasedubio/full/rGXjZK)

Thank you guys for all your support! Love this community


#2

it’ evaluates at every operation 10*10 = 100 + 2 = 102 *10 =1020 +3 = 1023 without any order of operations