Caffeinated Coder
Book an appointment
Lesson 10 · Working with data

Strings and template literals

A string is text: a row of characters in order, each at an index that starts at 0. Follow a seven-line script as it stores "Ada", reads one character, counts the characters, builds an upper-case copy while the original stays the same, and makes the sentence "Ada has 3 letters" twice: once by gluing pieces with + and once with a template literal.

10 min8 steps5 questionsBeginner
Fig 10 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.