check data type in js

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

Also in JavaScript: