cm0002@toast.ooo to Memes@sopuli.xyz · 4 days agoVery normal and safelemmy.mlimagemessage-square60linkfedilinkarrow-up1501arrow-down18cross-posted to: memes@lemmy.ml
arrow-up1493arrow-down1imageVery normal and safelemmy.mlcm0002@toast.ooo to Memes@sopuli.xyz · 4 days agomessage-square60linkfedilinkcross-posted to: memes@lemmy.ml
minus-squareAvicenna@programming.devlinkfedilinkarrow-up16·edit-23 days ago1+2=12 12+3=15 seems legit
minus-squareAvicenna@programming.devlinkfedilinkarrow-up4·edit-23 days agono 1 and 2 are strings 3 is an integer m’kay?
minus-squarelugal@sopuli.xyzlinkfedilinkarrow-up3·3 days agoA single digit is a char but two digits are a string and can be transformed into an integer
minus-squarespizzat2@lemmy.ziplinkfedilinkarrow-up4·3 days agoAlso, working upward, 3+2=5, “1”+5=“15”. I wonder which “inspired” path it chose.
1+2=12
12+3=15
seems legit
Shouldnt it be 123 then
no 1 and 2 are strings 3 is an integer m’kay?
A single digit is a char but two digits are a string and can be transformed into an integer
JavaScript logic
So it’s JavaScript. Noted…
Also, working upward, 3+2=5, “1”+5=“15”.
I wonder which “inspired” path it chose.