Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
datatypes
typeof
It is an operator to check the type of a value.
Some other types with typeof
1 last thing:
Leave y'r thoughts....
For further actions, you may consider blocking this person and/or reporting abuse
Sagar Das -
TheDev -
Pragati Verma -
Vikas Singh -
Top comments (2)
As you said,
typeof
is an operator, so you don't need the parenthesis.We may, if we are dealing with math and want to know the type of the result after some calculations, as in above (2*3). More of it in future posts.