Strings
suggest changeSyntax
"string literal"'string literal'"string literal with 'mismatching quotes'"— the quotes differ, so this is valid"string literal with \"escaped quotes\""— the inner quotes are escaped`template string ${expression}`String("a b c")— returns a string primitivenew String("a b c")— a String object, not the primitive
Basic info and string concatenation
Access character at index in string
Comparing strings lexicographically
Splitting a string into an array
String representations of numbers
Find the index of a substring inside a string
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents