From 6c59c738a8688c94d7002bb00bb977dd8dfeb75d Mon Sep 17 00:00:00 2001 From: Akaaljot Singh Date: Sun, 20 Feb 2022 17:40:53 +0530 Subject: [PATCH] Update 02_day_data_types.md --- 02_Day_Data_types/02_day_data_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02_Day_Data_types/02_day_data_types.md b/02_Day_Data_types/02_day_data_types.md index 198ae2b..a60726d 100644 --- a/02_Day_Data_types/02_day_data_types.md +++ b/02_Day_Data_types/02_day_data_types.md @@ -81,7 +81,7 @@ let word = 'JavaScript' If we try to modify the string stored in variable *word*, JavaScript should raise an error. Any data type under a single quote, double quote, or backtick quote is a string data type. ```js -word[0] = 'Y' +word[0] = 'J' ``` This expression does not change the string stored in the variable *word*. So, we can say that strings are not modifiable or in other words immutable.