Wyszukaj w JavaScript String
var string = "Hello world!";
var n = string.search("w"); //now n equals 6
Poised Peccary
var string = "Hello world!";
var n = string.search("w"); //now n equals 6
"I love cats".indexOf("cat") //returns 7, the position of "cat"