how to identify specific letter from a string in javascript

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

Also in JavaScript: