<!DOCTYPE html>
<html>
<body>
<p>Click the button to check where if the string includes the specified value.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<p><strong>Note:</strong> The includes() method is not supported in IE 11 (and earlier versions).</p>
<script>
function myFunction() {
var str = "Hello world, welcome to the universe.";
var n = str.includes("world", 12);
document.getElementById("demo").innerHTML = n;
}
</script>
</body>
</html>