जावास्क्रिप्ट वाक्य रचना की जांच के लिए शून्य या अपरिभाषित या खाली
if (typeof value !== 'undefined' && value) {
//deal with value'
};
जावास्क्रिप्ट अगर जाँच स्ट्रिंग खाली है
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
}