Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check characters inside a string javascript

let example = "Example String!";
let ourSubstring = "Example";

if (example.includes(ourSubstring)) {
	console.log("The word Example is in the string.");
} else {
	console.log("The word Example is not in the string.");
}
Source by careerkarma.com #
 
PREVIOUS NEXT
Tagged: #check #characters #string #javascript
ADD COMMENT
Topic
Name
7+7 =