From f43240fb452dbd2fd0e2654a6bc1c255774d7607 Mon Sep 17 00:00:00 2001 From: Almuhanad Alnihmy <68535829+Almuhanad-1@users.noreply.github.com> Date: Sun, 3 Jul 2022 10:22:28 +0300 Subject: [PATCH] Update 02_day_data_types.md --- 02_Day_Data_types/02_day_data_types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02_Day_Data_types/02_day_data_types.md b/02_Day_Data_types/02_day_data_types.md index e27d43d..88a5ba5 100644 --- a/02_Day_Data_types/02_day_data_types.md +++ b/02_Day_Data_types/02_day_data_types.md @@ -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.