diff --git a/02_Day_Data_types/string_methods/ends_with.js b/02_Day_Data_types/string_methods/ends_with.js index 0ce5f1f..61729ab 100644 --- a/02_Day_Data_types/string_methods/ends_with.js +++ b/02_Day_Data_types/string_methods/ends_with.js @@ -1,4 +1,4 @@ -// endsWith: it takes a substring as an argument and it checks if the string starts with that specified substring. It returns a boolean(true or false). +// endsWith: it takes a substring as an argument and it checks if the string ends with that specified substring. It returns a boolean(true or false). // string.endsWith(substring) let string = 'Love is the best to in this world' console.log(string.endsWith('world')) // true