How do I Check for an Empty/Undefined/Null String in Java Script? The Problem You want to check that a value is not an empty string, null, or undefined.