From 36f34ad4c48b22c1e0a02e9de69b3b24838d6434 Mon Sep 17 00:00:00 2001 From: sapiensFactor Date: Sat, 13 May 2023 09:40:30 +0530 Subject: [PATCH] updated support status for substr() --- 02_Day_Data_types/02_day_data_types.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/02_Day_Data_types/02_day_data_types.md b/02_Day_Data_types/02_day_data_types.md index e27d43d..04e0228 100644 --- a/02_Day_Data_types/02_day_data_types.md +++ b/02_Day_Data_types/02_day_data_types.md @@ -514,6 +514,9 @@ let country = 'Finland' console.log(country.substr(3, 4)) // land ``` +**NOTE**: `substr()` is no longer recommended, although some browsers may support it for compatibility reasons, it is in the process of being dropped. + + 6. *substring()*: It takes two arguments, the starting index and the stopping index but it doesn't include the character at the stopping index. ```js