Logical Expressions Not Obvious

The purpose of this page is to examine how various items are treated when used as booleans.

  1. ECMAScript 6 drafts and release candidates
  2. ECMAScript standard 5.1

When testing logical operations and methods on some of the values below, the results are not always obvious. (Itested the code below with Safari on Mac OS X. However, you can use whatever browser you like.)


Return to index page