Page 27 - JavaScript
P. 27

"Break" out of a loop                                                                            358

          Breaking out of a while loop                                                                       358

          Breaking out of a for loop                                                                         359

            "continue" a loop                                                                                359

          Continuing a "for" Loop                                                                            359

          Continuing a While Loop                                                                            359

            "do ... while" loop                                                                              360

            Break specific nested loops                                                                      360

            Break and continue labels                                                                        360

            "for ... of" loop                                                                                361

        Support of for...of in other collections                                                            361

          Strings                                                                                            361

          Sets                                                                                               362

          Maps                                                                                               362

          Objects                                                                                            363

            "for ... in" loop                                                                                363

        Chapter 62: Map                                                                                     365

          Syntax                                                                                             365


          Parameters                                                                                         365

          Remarks                                                                                            365

          Examples                                                                                           365

            Creating a Map                                                                                   365

            Clearing a Map                                                                                   366
            Removing an element from a Map                                                                   366

            Checking if a key exists in a Map                                                                366

            Iterating Maps                                                                                   367

            Getting and setting elements                                                                     367

            Getting the number of elements of a Map                                                          368

        Chapter 63: Memory efficiency                                                                       369

          Examples                                                                                           369

            Drawback of creating true private method                                                         369

        Chapter 64: Method Chaining                                                                         370
   22   23   24   25   26   27   28   29   30   31   32