var mainString =‘codehandbook’ var substr =/hand/ var found = substr.test(mainString) if(found){ console.log(‘Substring found !!’) }else{ console.log(‘Substring not found !!’) }
console.log(“keep it on the table”.toLowerCase().split(““).includes(“on”));// true console.log(“phones are good”.toLowerCase().split(““).includes(“on”));// false