Shouldnt it be 123 then
Comment on Very normal and safe
Avicenna@programming.dev 2 months ago
1+2=12 12+3=15
seems legit
Toneswirly@beehaw.org 2 months ago
lugal@sopuli.xyz 2 months ago
A single digit is a char but two digits are a string and can be transformed into an integer
pewpew@feddit.it 2 months ago
JavaScript logic
Avicenna@programming.dev 2 months ago
no 1 and 2 are strings 3 is an integer m’okay?
Ashiette@lemmy.world 2 months ago
So it’s JavaScript. Noted…
spizzat2@lemmy.zip 2 months ago
Also, working upward, 3+2=5, “1”+5=“15”.
I wonder which “inspired” path it chose.