cm0002@toast.ooo to Memes@sopuli.xyz · 2 months agoVery normal and safelemmy.mlimagemessage-square56fedilinkarrow-up1418arrow-down15cross-posted to: [email protected]
arrow-up1413arrow-down1imageVery normal and safelemmy.mlcm0002@toast.ooo to Memes@sopuli.xyz · 2 months agomessage-square56fedilinkcross-posted to: [email protected]
minus-squarespizzat2@lemmy.ziplinkfedilinkarrow-up6·2 months agoAlso, working upward, 3+2=5, “1”+5=“15”. I wonder which “inspired” path it chose.
minus-squareAvicenna@programming.devlinkfedilinkarrow-up3·2 months agono 1 and 2 are strings 3 is an integer m’okay?
minus-squarelugal@sopuli.xyzlinkfedilinkarrow-up3·2 months agoA single digit is a char but two digits are a string and can be transformed into an integer
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
no 1 and 2 are strings 3 is an integer m’okay?
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…