Is this expected?

Playing with code
using 0,1 to add value to a variable
See screenshot

1 Like

Yes! Although it is weird. This is because Javascript uses “Floating Point Numbers”.

Take a look at this video for an explanation of floating point numbers and why they can do this. Tom Scott explains it brilliantly.

Hope this helps!

Perfect I got it!
Yes, it’s really weird :joy: but I understand it, Floating Numbers!
Thank you :+1: