check andpass input value null in js code example Example: javascript null check if (Var === null) { //code goes here }