Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript string contains character

var email = "grepper@gmail.com";
if(email.includes("@")){
  console.log("Email is valid");
}
else{
  console.log("Email is not valid");
}
// includes return boolean, if your string found => true else => false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #string #character
ADD COMMENT
Topic
Name
7+8 =