Page 41 - JavaScript
P. 41

Examples                                                                                           545
            Converting a string to a number                                                                  545

            Converting a number to a string                                                                  546

            Double Negation (!!x)                                                                            546

            Implicit conversion                                                                              546

            Converting a number to a boolean                                                                 547

            Converting a string to a boolean                                                                 547

            Integer to Float                                                                                 547

            Float to Integer                                                                                 548

            Convert string to float                                                                          548
            Converting to boolean                                                                            548

            Convert an array to a string                                                                     549

            Array to String using array methods                                                              549

            Primitive to Primitive conversion table                                                          550

        Chapter 100: Vibration API                                                                          552

          Introduction                                                                                       552

          Syntax                                                                                             552

          Remarks                                                                                            552

          Examples                                                                                           552

            Check for support                                                                                552

            Single vibration                                                                                 552

            Vibration patterns                                                                               553

        Chapter 101: WeakMap                                                                                554

          Syntax                                                                                             554

          Remarks                                                                                            554

          Examples                                                                                           554

            Creating a WeakMap object                                                                        554

            Getting a value associated to the key                                                            554

            Assigning a value to the key                                                                     554

            Checking if an element with the key exists                                                       555

            Removing an element with the key                                                                 555

            Weak reference demo                                                                              555
   36   37   38   39   40   41   42   43   44   45   46