strpos node js code example Example: js strpos var str = "Hello world, welcome to the universe."; var n = str.indexOf("welcome");