cm0002@toast.ooo to Memes@sopuli.xyz · 21 days agoVery normal and safelemmy.mlimagemessage-square63fedilinkarrow-up1540arrow-down17cross-posted to: [email protected]
arrow-up1533arrow-down1imageVery normal and safelemmy.mlcm0002@toast.ooo to Memes@sopuli.xyz · 21 days agomessage-square63fedilinkcross-posted to: [email protected]
minus-squareAvicenna@programming.devlinkfedilinkarrow-up23·edit-221 days ago1+2=12 12+3=15 seems legit
minus-squarespizzat2@lemmy.ziplinkfedilinkarrow-up8·21 days agoAlso, working upward, 3+2=5, “1”+5=“15”. I wonder which “inspired” path it chose.
minus-squarelugal@sopuli.xyzlinkfedilinkarrow-up5·21 days agoA single digit is a char but two digits are a string and can be transformed into an integer
minus-squareAvicenna@programming.devlinkfedilinkarrow-up4·edit-221 days agono 1 and 2 are strings 3 is an integer m’kay?
1+2=12
12+3=15
seems legit
Also, working upward, 3+2=5, “1”+5=“15”.
I wonder which “inspired” path it chose.
Shouldnt it be 123 then
A single digit is a char but two digits are a string and can be transformed into an integer
JavaScript logic
no 1 and 2 are strings 3 is an integer m’kay?
So it’s JavaScript. Noted…