синтаксис на javascript за проверка на null, неопределени или празна
if (typeof value !== 'undefined' && value) {
//deal with value'
};
javascript проверява, дали един низ е празна
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
}