Skip to main content

Practice ยท 2 of 3

const or let?

Declare a constant firstName with the value "Ada", and a let variable score starting at 0 that you then reassign to 42. Log both on one line using a template literal: Ada: 42. Rules: - firstName never changes โ€” const. - score is reassigned โ€” let.

Difficulty: beginner

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