user3475
0
Q:

how to find string in a string


string.indexOf(searchvalue, start)
0

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

var n = str.indexOf("welcome");
 
0

New to Communities?

Join the community