javascript datatyp check code example
Example 1: typeof javascript
console.log(typeof 'blubber');
Example 2: check data type in js
var x = "Hello World";
typeof x; // "string"
console.log(typeof 'blubber');
var x = "Hello World";
typeof x; // "string"