Chapter 2 — Strings and Template Literals
New concepts: template literals, string methods, trim, toUpperCase, includes, split, replace
Open the browser Console (F12 → Console) to see output from console.log().
Exercises
- Clean an array of messy names: trim and title-case each
- Build a formatted order summary using a template literal
- Parse a CSV line string: split by comma, destructure into variables
- Write a formatEUR(amount) function that returns '€4,250.75' format