javascript function to search character in a string code example
Example: search inside a string javascript
var string = "Hello world!";
var n = string.search("w"); //now n equals 6
var string = "Hello world!";
var n = string.search("w"); //now n equals 6