Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

null check in javascript

if(!pass || !cpass || !email || !cemail || !user) {
   // Code here
}
// Which will check for empty strings (""), null, undefined, false and the numbers 0 and NaN
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #null #check #javascript
ADD COMMENT
Topic
Name
7+3 =