Page 37 - JavaScript
P. 37

Basic Info and String Concatenation                                                              499

        Concatenating Strings                                                                               499


        String Templates                                                                                    500

          Escaping quotes                                                                                    500

          Reverse String                                                                                     501

          Explanation                                                                                        502

            Trim whitespace                                                                                  503

            Substrings with slice                                                                            503

            Splitting a string into an array                                                                 503

            Strings are unicode                                                                              503

            Detecting a string                                                                               504
            Comparing Strings Lexicographically                                                              505

            String to Upper Case                                                                             505

            String to Lower Case                                                                             506

            Word Counter                                                                                     506

            Access character at index in string                                                              506

            String Find and Replace Functions                                                                507

          indexOf( searchString ) and lastIndexOf( searchString )                                            507

          includes( searchString, start )                                                                    507

          replace( regexp|substring, replacement|replaceFunction )                                           507

            Find the index of a substring inside a string                                                    508

            String Representations of Numbers                                                                508
            Repeat a String                                                                                  509

            Character code                                                                                   510

        Chapter 89: Symbols                                                                                 511


          Syntax                                                                                             511

          Remarks                                                                                            511

          Examples                                                                                           511

            Basics of symbol primitive type                                                                  511

            Converting a symbol into a string                                                                511
            Using Symbol.for() to create global, shared symbols                                              512

        Chapter 90: Tail Call Optimization                                                                  513
   32   33   34   35   36   37   38   39   40   41   42