1var str = "This is a test sentence";
2var hasTest = str.includes("test");
3
4if(hasTest == true){
5 //do a thing
6}
1//regular indexof
2let a = 'asbdais sbbdias isajdij';
3a.indexOf('ias');
4// with regex:
5let a = 'asbdais sbbdias isajdij';
6a.search(/ias/g);