Update 02_day_data_types.md

pull/394/head
Almuhanad Alnihmy 3 years ago committed by GitHub
parent ec0824543b
commit f43240fb45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -111,9 +111,9 @@ Let us see by creating an array. An array is a list of data values in a square b
```js
let nums = [1, 2, 3]
nums[0] = 10
nums[0] = 1
console.log(nums) // [10, 2, 3]
console.log(nums) // [1, 2, 3]
```
As you can see, an array, which is a non-primitive data type is mutable. Non-primitive data types cannot be compared by value. Even if two non-primitive data types have the same properties and values, they are not strictly equal.

Loading…
Cancel
Save