cantstopthesignal@sh.itjust.works to Programmer Humor@lemmy.ml · 8 months agoThe code was very janky, but it workedi.imgflip.comimagemessage-square25fedilinkarrow-up126arrow-down10
arrow-up126arrow-down1imageThe code was very janky, but it workedi.imgflip.comcantstopthesignal@sh.itjust.works to Programmer Humor@lemmy.ml · 8 months agomessage-square25fedilink
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up3·8 months agoThis evaluates to NaN for some reason: '10' % 0 Since JS doesn’t really differentiate strings from numbers, except on the places it does, it makes sense to make sure you are working with numbers.
This evaluates to NaN for some reason:
Since JS doesn’t really differentiate strings from numbers, except on the places it does, it makes sense to make sure you are working with numbers.