Loading ...
Sorry, an error occurred while loading the content.
Advanced Search
Author
Subject
Message
Special notice only

Advanced Search
  • Looks like it's been fixed. Thanks for the quick turnaround! --- In jslint_com@^$1, "douglascrockford" wrote: > > --- In jslint_com@^$2, "andrew_wh" wrote: > > > > I understand why the following code generates the warning "Unexpected 'typeof'. Use '===' to compare directly with undefined" > > > > var foo; > > > > if (typeof foo === 'undefined') { > > alert('foo undefined...
    andrew_wh Jan 29, 2013
  • I understand why the following code generates the warning "Unexpected 'typeof'. Use '===' to compare directly with undefined" var foo; if (typeof foo === 'undefined') { alert('foo undefined'); } JSLint wants me to write this instead: var foo; if (foo === undefined) { alert('foo undefined'); } Which is all well and good. However I noticed that I can get around the error by simply...
    andrew_wh Jan 29, 2013