Answers for "js empty check function"

4

javascript empty function

const func = () => {};
// Or
const func = Function();
Posted by: Guest on July-03-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 "Javascript"

Browse Popular Code Answers by Language