what type of is a string in javascript code example Example: get type of string javascript var str = "this is string"; typeof str; // returns string