Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if string contains substring javascript

const string = "javascript";
const substring = "script";

console.log(string.includes(substring));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #string #substring #javascript
ADD COMMENT
Topic
Name
6+8 =