trouver un mot dans la chaîne javascript
var str = "This is a test sentence";
var hasTest = str.includes("test");
NIP
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]