From 595d4caa78ccc6255744b9f9a7ea90f5ecf5e31b Mon Sep 17 00:00:00 2001 From: "pradeep@marensolutions.com" Date: Mon, 25 Apr 2022 11:20:57 +0530 Subject: [PATCH] deleted comment --- 02_Day_Data_types/string_methods/index_of.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02_Day_Data_types/string_methods/index_of.js b/02_Day_Data_types/string_methods/index_of.js index 189154b..480db7c 100644 --- a/02_Day_Data_types/string_methods/index_of.js +++ b/02_Day_Data_types/string_methods/index_of.js @@ -1,6 +1,6 @@ // indexOf(): Takes takes a substring and if the substring exists in a string it returns the first position of the substring if does not exist it returns -1 -// string.indexOf(substring) +string.indexOf(substring) let string = '30 Days Of JavaScript' console.log(string.indexOf('D')) // 3 console.log(string.indexOf('Days')) // 3