Page 36 - JavaScript
P. 36

Examples                                                                                           488
            Creating a Set                                                                                   488

            Adding a value to a Set                                                                          488

            Removing value from a set                                                                        488

            Checking if a value exist in a set                                                               488

            Clearing a Set                                                                                   489

            Getting set length                                                                               489

            Converting Sets to arrays                                                                        489

            Intersection and difference in Sets                                                              490

            Iterating Sets                                                                                   490
        Chapter 86: Setters and Getters                                                                     491


          Introduction                                                                                       491

          Remarks                                                                                            491

          Examples                                                                                           491

            Defining an Setter/Getter in a Newly Created Object                                              491

            Defining a Setter/Getter Using Object.defineProperty                                             491
            Defining getters and setters in ES6 class                                                        492


        Chapter 87: Strict mode                                                                             493

          Syntax                                                                                             493

          Remarks                                                                                            493

          Examples                                                                                           493

            For entire scripts                                                                               493

            For functions                                                                                    493

            Changes to global properties                                                                     494
            Changes to properties                                                                            495

            Behaviour of a function's arguments list                                                         496

            Duplicate Parameters                                                                             497

            Function scoping in strict mode                                                                  497

            Non-Simple parameter lists                                                                       497

        Chapter 88: Strings                                                                                 499

          Syntax                                                                                             499

          Examples                                                                                           499
   31   32   33   34   35   36   37   38   39   40   41