Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87530

Re: Custom date validation script

$
0
0

Hi,

 

The triple equals avoids any type conversions, in this case isDate and the false literal are both boolean so it doesn't make much difference, false == false and false === false both evaluate to true, but "" == false evaluates to true but "" === false evaluates to false.  It's just a good habit to get into.

 

Here's a link to a guy that can explain it better, ECMA-262 » Note 2. ECMAScript. Equality operators.

 

Regards

 

Bruce


Viewing all articles
Browse latest Browse all 87530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>