I’m using the Yahoo User Interface API. If I have the following:
var field = yuiDom.get('dobfield');
Is it necessary to check for something like:
if (field == null)
I’m a .NET developer, and whenever I try to get a reference to a control on my web page then I always check for null values. I checked the YUI examples, and references to controls are used extensively, but no where do I see if they check to see if there was a reference.
You might see this:
or
Essentially these mean if is null, and if is not null. However, they are equivalent to
and