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