JavaScript
🔤 Text strings
Everything a user reads is text. Learn to create, combine, and transform strings with template literals and the most useful methods.
What you'll learn
- Create strings and build text with template literals (
`${...}`) instead of concatenating with+. - Access a character by index and compute the last one with
length - 1. - Transform text by chaining methods like
toUpperCase,trim,slice,replace,split, andindexOf.
Lessons
Creating strings and template literalsQuotes, concatenation with + and the magic of template literals. Length and access by indexThe length property and how to read a specific character. Methods to transform texttoUpperCase, toLowerCase, includes, slice, replace, split, trim, indexOf.Practice this module in the app
DevPath is a hands-on course: you read the theory here; in the app you put it into practice with exercises that really run, offline.
Start free in the app →