deleted comment

pull/325/head
pradeep@marensolutions.com 3 years ago
parent 39578fce0b
commit 595d4caa78

@ -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

Loading…
Cancel
Save