Each element in the String occupies a position in the String. You can use multi-line strings and string interpolation features with them. Methods of String Method Description , , Return the character or character code at the specified position in string. Splits a String object into an array of strings by separating the string into substrings. Using normal strings, you would have to use the following syntax in order to get multi-line strings: console.
Template literals can contain place holders. A String object has a variety of methods: for example those that return a variation on the string itself, such as substring and toUpperCase. The constructors for , , and objects are properties of the Intl object. Combines the text of two strings and returns a new string. The result is different in another time zone. The following table summarizes the methods of objects.
You can access each code unit using an array bracket style. Returns the Unicode Normalization Form of the calling string value. This is a method of the String class, not a String instance. For example, there are actually two different sort orders in German, phonebook and dictionary. You can also use the String.
Date and time formatting The object is useful for formatting date and time. Multi-lines Any new line characters inserted in the source are part of the template literal. Accessing the individual code units in such a string using brackets may have undesirable consequences such as the formation of strings with unmatched surrogate code units, in violation of the Unicode standard. . . .
. . . . . .
. . . . .