Answers for "how to string empty in javascript"

0

empty string in javascript

var s; // undefined
var s = ""; // ""
s.length // 0
Posted by: Guest on October-29-2020
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 "how to string empty in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language