9951 explained code solutions for 126 technologies


javascriptCheck if string contains substring


'test string'.indexOf('test') !== -1 // truectrl + c
test string

string to find substring in

indexOf

this function will return index of found substring (starting 0) or -1 if not found

'test'

substring to search in given string