You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-types.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,36 @@ It represents a unique identifier.
68
68
constPRIVATE_KEY=Symbol("private");
69
69
````
70
70
71
+
### ✦ Non-Primitive Data Types:
72
+
Non-primitive data types in JavaScript are complex data structures that can hold multiple values or properties. They are mutable and compared by reference.
73
+
74
+
The list of non-primitive data types are arrays and objects.
75
+
76
+
### ✦ Arrays:
77
+
It is a ordered collections of elements.
78
+
79
+
*Syntax:`let array = [1, "hello", true];`*
80
+
81
+
```javascript
82
+
let fruits = ["apple", "banana", "orange"];
83
+
let numbers = [1, 2, 3, 4, 5];
84
+
````
85
+
86
+
See More on this [Reference](./arrays.md)
87
+
88
+
### ✦ Objects:
89
+
It is a collections of key-value pairs
90
+
91
+
```javascript
92
+
let object = {
93
+
name:"Alice",
94
+
age:30,
95
+
isStudent:true
96
+
};
97
+
```
98
+
99
+
See More on this [Reference](./objects.md)
100
+
71
101
### ✦ Comparison:
72
102
- Data type:
73
103
- Primitive Data Types: It represent individual values and single piece of data.
0 commit comments