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

  1. Clean an array of messy names: trim and title-case each
  2. Build a formatted order summary using a template literal
  3. Parse a CSV line string: split by comma, destructure into variables
  4. Write a formatEUR(amount) function that returns '€4,250.75' format