Skip to main content

Practice ยท 1 of 3

Store and Combine

Practice variables and template literals: 1. Declare a const called learner holding your name (a string). 2. Declare a let called lessonsDone starting at 0, then reassign it to 3. 3. Compute const remaining = 15 - lessonsDone; 4. Log one sentence using a template literal that includes both the name and the remaining count โ€” e.g. Ada has 12 lessons left.

Difficulty: beginner

Back to lesson: Practice: Variables: Naming Values โ€” Practice