Page 25 - JavaScript
P. 25

setTimeout                                                                                         336
          Problems with setTimeout                                                                           336


          Order of operations                                                                                336

          Cancelling a timeout                                                                               337

            Intervals                                                                                        337

        Chapter 57: JavaScript Variables                                                                    339

          Introduction                                                                                       339

          Syntax                                                                                             339

          Parameters                                                                                         339

          Remarks                                                                                            339

        h11                                                                                                 339

          Nested Arrays                                                                                      339

        h12                                                                                                 340


        h13                                                                                                 340

        h14                                                                                                 340

          Nested Objects                                                                                     340

        h15                                                                                                 340

        h16                                                                                                 340


        h17                                                                                                 340

          Examples                                                                                           341

            Defining a Variable                                                                              341

            Using a Variable                                                                                 341

            Types of Variables                                                                               341
            Arrays and Objects                                                                               342


        Chapter 58: JSON                                                                                    343

          Introduction                                                                                       343

          Syntax                                                                                             343

          Parameters                                                                                         343

          Remarks                                                                                            343

          Examples                                                                                           344

            Parsing a simple JSON string                                                                     344
   20   21   22   23   24   25   26   27   28   29   30