From d9efaedd6293d5858c8272f08290e07df85db60f Mon Sep 17 00:00:00 2001 From: Menai Ala Eddine Date: Mon, 6 Feb 2023 11:35:51 +0100 Subject: [PATCH] :recycle: Remove `substr` because it`s deprecated `substr` is deprecated. [MDN source](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr). --- 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 e27d43d..3908ff0 100644 --- a/02_Day_Data_types/02_day_data_types.md +++ b/02_Day_Data_types/02_day_data_types.md @@ -908,7 +908,7 @@ console.log(numInt) // 9 3. Print the __length__ of the string on the browser console using _console.log()_ 4. Change all the string characters to capital letters using __toUpperCase()__ method 5. Change all the string characters to lowercase letters using __toLowerCase()__ method -6. Cut (slice) out the first word of the string using __substr()__ or __substring()__ method +6. Cut (slice) out the first word of the string using __substring()__ method 7. Slice out the phrase *Days Of JavaScript* from *30 Days Of JavaScript*. 8. Check if the string contains a word __Script__ using __includes()__ method 9. Split the __string__ into an __array__ using __split()__ method