“xxxabcxxxxx”
abc
xxxxx”
“xxx
Length 3
Length 5
‘abc’ not appear in the middle of the string
Checking for string 'abc' in the middle of a the string
False
“xxxabcxxx”
abc
xxx”
“xxx
Length 3
Length 3
‘abc’ appear in the middle of the string
Checking for string 'abc' in the middle of a the string
True
w3resource.com