One thing to note that caugth me by surprise is that Number will parse any falsy value as 0, so undefined, null, false all parse fine and return 0, can be unexpected.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
One thing to note that caugth me by surprise is that
Number
will parse any falsy value as0
, soundefined
,null
,false
all parse fine and return0
, can be unexpected.