cm0002@toast.ooo to Memes@sopuli.xyz · 1 day agoVery normal and safelemmy.imagisphe.reimagemessage-square58linkfedilinkarrow-up1511arrow-down17cross-posted to: memes@lemmy.ml
arrow-up1504arrow-down1imageVery normal and safelemmy.imagisphe.recm0002@toast.ooo to Memes@sopuli.xyz · 1 day agomessage-square58linkfedilinkcross-posted to: memes@lemmy.ml
minus-squareAvicenna@programming.devlinkfedilinkarrow-up18·edit-25 hours ago1+2=12 12+3=15 seems legit
minus-squarelugal@sopuli.xyzlinkfedilinkarrow-up4·5 hours 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-25 hours agono 1 and 2 are strings 3 is an integer m’kay?
minus-squarespizzat2@lemmy.ziplinkfedilinkarrow-up6·11 hours 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
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?
Also, working upward, 3+2=5, “1”+5=“15”.
I wonder which “inspired” path it chose.