Strings as Objects (pp. 27-30)
A string is a read-only array of characters. It is one of JavaScript’s five primitive types (string/text, number, boolean, undefined, null).
All primitive types are immutable (cannot be changed).
- String Comparison
- String split method
- Array join method
- String indexOf method
- String substr method. Extracts a specified number of characters in a string, from a start index.
- String substring method. Extracts the characters in a string between two specified indexes.
- The String slice method works like substring.
- String search method.
String Applications
- Cryptology: Encoding a word as Pig-Latin. Slides 9-12 only.
- The above slides use Regular Expression (ReqExp) Literals