check null value js using ?. code example Example: js check null if (Var === null) { //code goes here }