hw to heckt input string value none javascript code example Example: empty string in javascript var s; // undefined var s = ""; // "" s.length // 0