tatterdemalion to Science Memes@mander.xyzEnglish · 1 month agoif statement == falsei.imgflip.comimagemessage-square41fedilinkarrow-up1253arrow-down117
arrow-up1236arrow-down1imageif statement == falsei.imgflip.comtatterdemalion to Science Memes@mander.xyzEnglish · 1 month agomessage-square41fedilink
minus-squareAdmiral Patrick@dubvee.orglinkfedilinkEnglisharrow-up1·edit-21 month agoIt’ll give you 1 ~= true or 0 ~= undefined, but I typically use Typescript which prefers actual booleans to boolean-ish
minus-squarejuliebean@lemm.eelinkfedilinkEnglisharrow-up1·1 month agohuh. interesting. i wonder what number it’s actually storing for false then?
It’ll give you 1 ~= true or 0 ~= undefined, but I typically use Typescript which prefers actual booleans to boolean-ish
huh. interesting. i wonder what number it’s actually storing for false then?