Page 38 - JavaScript
P. 38

Syntax                                                                                             513
          Remarks                                                                                            513


          Examples                                                                                           513

            What is Tail Call Optimization (TCO)                                                             513

            Recursive loops                                                                                  514
        Chapter 91: Template Literals                                                                       515


          Introduction                                                                                       515

          Syntax                                                                                             515

          Remarks                                                                                            515

          Examples                                                                                           515

            Basic interpolation and multiline strings                                                        515

            Raw strings                                                                                      515

            Tagged strings                                                                                   516
            Templating HTML With Template Strings                                                            517

            Introduction                                                                                     517

        Chapter 92: The Event Loop                                                                          519


          Examples                                                                                           519
            The event loop in a web browser                                                                  519

            Asynchronous operations and the event loop                                                       520

        Chapter 93: Tilde ~                                                                                 521


          Introduction                                                                                       521

          Examples                                                                                           521

            ~ Integer                                                                                        521
            ~~ Operator                                                                                      521

            Converting Non-numeric values to Numbers                                                         522

            Shorthands                                                                                       522

        indexOf                                                                                             523

        can be re-written as                                                                                523


          ~ Decimal                                                                                          523

        Chapter 94: Timestamps                                                                              524

          Syntax                                                                                             524
   33   34   35   36   37   38   39   40   41   42   43