check for string in string javascript

JavaScript
var str = "Hello world, welcome to the universe.";

var n = str.includes("world");
 
Source

Also in JavaScript: