7 points
This 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.
2 points
*
This 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.
Post funny things about programming here! (Or just rant about your favourite programming language.)
5K
Monthly active users
1.5K
Posts
33K
Comments