how to check data type js code example
Example 1: check data type in javascript
typeof("string"); //string
typeof(123); //number
Example 2: typeof javascript
console.log(typeof 'blubber');
typeof("string"); //string
typeof(123); //number
console.log(typeof 'blubber');