var str = "This is a test sentence";
var hasTest = str.includes("test");
const string = "This is a very long string";
const match = string.match(/very/);
console.log(match) // ['very', index: 10, input: 'This is a very long string', groups: undefined]