JavaScript - The typeof operator
The typeof operator returns the type of the argument. It’s useful when we want to process values of different types differently or just want to do a quick check.
A call to typeof x returns a string with the type name:
typeof undefined
"undefined"
t...
dayanperez.hashnode.dev1 min read