forked from MSK-Web-development/msk-javascript-bootcamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata-types.js
More file actions
21 lines (17 loc) · 671 Bytes
/
data-types.js
File metadata and controls
21 lines (17 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
? Primitive types
String- represents sequence of characters e.g. var str="ram";
Number- represents numeric values eg var num =25;
BigInt - represent whole numbers larger than 2^53 - 1
Boolean - represents boolean value either false or true eg var b=true;
Undefined - represents undefined value
Null - represents null i.e. no value at all
Symbol- Symbols are often used to add unique property keys to an object
*/
/*
? Non - primitive types
Object - instance through which we can access members.
eg: var man={name:"john",age:50,height:5.6}
Arrays - represents group of similar values
eg var arr=[1,2,3,4,5];
*/