string primitive data types javascript code example
Example 1: data types in javascript
1, 1.0 // Number
'String', "String"
true, false // Boolean
{id: 1;} // Object
[1, 2, 3] // Array
Example 2: what is data type in javascript
var i = 10;
1, 1.0 // Number
'String', "String"
true, false // Boolean
{id: 1;} // Object
[1, 2, 3] // Array
var i = 10;