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
}