Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find word in javascript string

var str = "This is a test sentence";
var hasTest = str.includes("test");
 
PREVIOUS NEXT
Tagged: #find #word #javascript #string
ADD COMMENT
Topic
Name
7+8 =