From 49d888906ee0a1abd37827c8245a116bbeed2b61 Mon Sep 17 00:00:00 2001 From: Orkhan <64924921+orkhannajafli@users.noreply.github.com> Date: Mon, 10 Jan 2022 02:31:21 +0400 Subject: [PATCH] starts -> ends The endsWith() method returns true if a string ends with a specified string. Otherwise it returns false. --- 02_Day_Data_types/string_methods/ends_with.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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