how to use th typeof() method in javascript objects code example
Example 1: check data type in javascript
typeof("string"); //string
typeof(123); //number
Example 2: type javascirpt
console.log(typeof 42);
typeof("string"); //string
typeof(123); //number
console.log(typeof 42);