Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if string is empty

var string = "not empty";
if(string == ""){
  console.log("Please Add");
}
else{
  console.log("You can pass"); // console will log this msg because our string is not empty
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #check #string #empty
ADD COMMENT
Topic
Name
5+7 =