@[email protected] to Programmer [email protected] • 7 months agoThe code was very janky, but it workedi.imgflip.comimagemessage-square35fedilinkarrow-up1476arrow-down19
arrow-up1467arrow-down1imageThe code was very janky, but it workedi.imgflip.com@[email protected] to Programmer [email protected] • 7 months agomessage-square35fedilink
minus-square@[email protected]linkfedilinkEnglish6•7 months agoNot a JS dev either but ===. Not really sure what the (+x) is about
minus-square@[email protected]linkfedilink1•7 months agothe remainder operator should return a number or a NaN right? do we actually need the triple here?
minus-square@marcoslink2•edit-27 months agoNot really. But with JS it’s better safe than sorry. The GP’s addition is unnecessary, but I fully support anyone that decides to do it.
Not a JS dev either but
===
.Not really sure what the
(+x)
is aboutthe remainder operator should return a number or a NaN right? do we actually need the triple here?
Not really. But with JS it’s better safe than sorry.
The GP’s addition is unnecessary, but I fully support anyone that decides to do it.
point taken!