Day 3 of 14 30 minTemplate literalsString methodsIndexing
Work with text. Build strings with template literals, read characters by position, slice out parts, search, change case, trim, split and join.
By the end of today you can
- Create strings with quotes and template literals
- Read characters by index and get a string's length
- Extract parts of a string with slice()
- Search text with includes(), startsWith() and indexOf()
- Transform text with toUpperCase(), trim(), replaceAll(), split() and join()
What's inside
- 8 sections
- 3 diagrams and mind maps
- 8 code examples you can run
- 5-question quiz
- 1Three kinds of quotes
- 2Template literals
- 3Reading characters: indexes and length
- 4Slicing
- 5Searching
- 6Transforming text
- 7Split and join
- 8Putting it together: a username checker
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free