จาวาสคริปต์เช็คสำหรับโพรโทคอล aimcomment ตัวแปร
var myVar=null;
if(myVar === null){
//I am null;
}
if (typeof myVar === 'undefined'){
//myVar is undefined
}
จาวาสคริปต์โปรดตรวจสอบว่าทำดัชนีเทียบสีหรือโพรโทคอล aimcomment
if( typeof myVar === 'undefined' || myVar === null ){
// myVar is undefined or null
}