la syntaxe javascript pour vérifier la valeur null ou undefined ou vide
if (typeof value !== 'undefined' && value) {
//deal with value'
};
javascript vérifier si la chaîne est vide
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
}