Page 19 - JavaScript
P. 19

Examples                                                                                           247
            Enum definition using Object.freeze()                                                            247

            Alternate definition                                                                             248

            Printing an enum variable                                                                        248

            Implementing Enums Using Symbols                                                                 248

            Automatic Enumeration Value                                                                      249

        Chapter 39: Error Handling                                                                          251

          Syntax                                                                                             251

          Remarks                                                                                            251

          Examples                                                                                           251

            Interaction with Promises                                                                        251

            Error objects                                                                                    252

            Order of operations plus advanced thoughts                                                       252

            Error types                                                                                      254

        Chapter 40: Escape Sequences                                                                        256

          Remarks                                                                                            256

        Similarity to other formats                                                                         256

          Examples                                                                                           256

            Entering special characters in strings and regular expressions                                   256

            Escape sequence types                                                                            257

        Single character escape sequences                                                                   257

        Hexadecimal escape sequences                                                                        257


        4-digit Unicode escape sequences                                                                    258

        Curly bracket Unicode escape sequences                                                              258

        Octal escape sequences                                                                              259


        Control escape sequences                                                                            259

        Chapter 41: Evaluating JavaScript                                                                   260

          Introduction                                                                                       260

          Syntax                                                                                             260

          Parameters                                                                                         260

          Remarks                                                                                            260
   14   15   16   17   18   19   20   21   22   23   24