Answers for "string non empty check js"

1

js if string not empty

if (!str.length) { ...
Posted by: Guest on February-26-2021
0

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
}
Posted by: Guest on June-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language