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