cm0002@toast.ooo to Memes@sopuli.xyz · 6 days agoVery normal and safelemmy.mlimagemessage-square64fedilinkarrow-up1562cross-posted to: memes@lemmy.ml
arrow-up1562imageVery normal and safelemmy.mlcm0002@toast.ooo to Memes@sopuli.xyz · 6 days agomessage-square64fedilinkcross-posted to: memes@lemmy.ml
minus-squareAvicenna@programming.devlinkfedilinkarrow-up22·edit-25 days ago1+2=12 12+3=15 seems legit
minus-squarespizzat2@lemmy.ziplinkfedilinkarrow-up8·6 days agoAlso, working upward, 3+2=5, “1”+5=“15”. I wonder which “inspired” path it chose.
minus-squarelugal@sopuli.xyzlinkfedilinkarrow-up4·5 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-25 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.
So it’s JavaScript. Noted…
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?