JS Built-ins
Variablesbeginner

Variables β€” let: mutable binding

let allows reassignment

Unlike const, a variable declared with let can be reassigned after its initial declaration.

Challenge: Write letReassign() that:

  1. Declares score with let, set to 0
  2. Reassigns it to 100
  3. Returns score
πŸ’‘ Hints (1)
  • β€’ Declare with let, then use = to reassign on a separate line