Page 12 - JavaScript
P. 12

AND                                                                                                145
          OR                                                                                                 145


          NOT                                                                                                145

            Abstract Equality (==)                                                                           146

          7.2.13 Abstract Equality Comparison                                                                146

          Examples:                                                                                          146

            Relational operators (<, <=, >, >=)                                                              147
            Inequality                                                                                       147

            Logic Operators with Non-boolean values (boolean coercion)                                       148

            Null and Undefined                                                                               149

        The differences between null and undefined                                                          149

        The similarities between null and undefined                                                         149


        Using undefined                                                                                     150

          NaN Property of the Global Object                                                                  150

        Checking if a value is NaN                                                                          150

        Points to note                                                                                      152

          Short-circuiting in boolean operators                                                              152


          Abstract equality / inequality and type conversion                                                 154
          The Problem                                                                                        154


          The Solution                                                                                       155

            Empty Array                                                                                      156

            Equality comparison operations                                                                   156
          SameValue                                                                                          156


          SameValueZero                                                                                      156
          Strict Equality Comparison                                                                         157


          Abstract Equality Comparison                                                                       158

            Grouping multiple logic statements                                                               158

            Automatic Type Conversions                                                                       159
            List of Comparison Operators                                                                     159

            Bit fields to optimise comparison of multi state data                                            160

        Chapter 22: Conditions                                                                              162
   7   8   9   10   11   12   13   14   15   16   17