javascript if string empty or undefined code example Example: javascript not null if (variable !== null) { console.log("Var is NOT null"); }