JavaScript typeof

JavaScript typeof


JavaScript typeof
The typeof operator is used to get the data type its operand. The operand can be either a variable, a function or an object.
The operator return the data type
The Syntax of typeof operator is as follows:
             typeof(operand)
 There are some typeof operators
Example
typeof “abc”           // returns string 
typeof 10               // returns number
typeof true             // returns boolean
typeof [1,4,7,8]      // returns object
Example
https://lh3.googleusercontent.com/BCITvOxfUTPcmqUOxyjvrEs5n-pd2F9KxkIs9hZ0RSzC0gs1rgmtushNt9DBhGVzCasda1CR4fXgh2Wz1TlPmgz-hPt4YLXmVhNwZC8EfP6JQ5OwtgDd0yyiGMPPM_oppXjdlpBT
Output
number
string
boolean
undefined