DEV Community

Arul .A
Arul .A

Posted on

What is Type of?

  • Type of is an operator. It is used to check the data type of a variable or value.
EX:
console.log(typeof 10);          // "number"
console.log(typeof "Hello");     // "string"

Enter fullscreen mode Exit fullscreen mode

Top comments (0)