dataSyncObj ? dataSyncObj.lastDataSyncTime : null in js code example Example: js check null if (Var === null) { //code goes here }