check if word is in string javascript

JavaScript
var str = "Hello world, welcome to the universe.";
var n = str.includes("world");
Source

Also in JavaScript: