check data type in js

JavaScript
var x = "Hello World";
typeof x; // "string"typeof("iAmAString");//This should return 'string'
//NO camelCase, as it is a JS Keyword
Source

Also in JavaScript: