Lena ( lena@gregtech.eu ) to Programmer Humor@programming.dev · 1 day agoWhat the fuck javascriptgregtech.euimagemessage-square23linkfedilinkarrow-up1251
arrow-up1251imageWhat the fuck javascriptgregtech.euLena ( lena@gregtech.eu ) to Programmer Humor@programming.dev · 1 day agomessage-square23linkfedilink
minus-squareanewfox ( anewfox@lemmy.zip ) linkfedilinkarrow-up7·1 day agofun fact: getting NaN from a numeric calculation is the error that you handle. if this wasn’t obvious, please don’t write code for anyone but yourself. hope this helps.
minus-squaretreadful ( treadful@lemmy.zip ) linkfedilinkEnglisharrow-up1·23 hours agoNaN is a primitive value, not an Error. >> typeof 1 / "a" "number"
fun fact: getting NaN from a numeric calculation is the error that you handle. if this wasn’t obvious, please don’t write code for anyone but yourself. hope this helps.
NaNis a primitive value, not anError.>> typeof 1 / "a" "number"