javascript type of string code example
Example 1: check data type in javascript
typeof("string"); //string
typeof(123); //number
Example 2: get type of string javascript
var str = "this is string";
typeof str; // returns string
typeof("string"); //string
typeof(123); //number
var str = "this is string";
typeof str; // returns string