Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

search inside a string javascript

var string = "Hello world!";
var n = string.search("w"); //now n equals 6
 
PREVIOUS NEXT
Tagged: #search #string #javascript
ADD COMMENT
Topic
Name
5+2 =