DEV Community

Discussion on: 3 ways to check if variable is a number in JavaScript

Collapse
 
alexmustiere profile image
Alex Mustiere

typeof is an operator, not a function, see developer.mozilla.org/en-US/docs/W...

Collapse
 
sanchithasr profile image
Sanchithasr

Fixed it. Thanks.