Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js string search

var str = "This is a test sentence";
var hasTest = str.includes("test");

if(hasTest == true){
	//do a thing 
}
 
PREVIOUS NEXT
Tagged: #js #string #search
ADD COMMENT
Topic
Name
1+6 =