Once a variable is declared: let a = 10, it cannot be reused without let keyword again.
a = 20 throws an error.
- Decide whether to introduce reassignment without
let keyword.
- Also check whether doing
let a = 20 again reuses the object instead of creating new one.
Once a variable is declared:
let a = 10, it cannot be reused withoutletkeyword again.a = 20throws an error.letkeyword.let a = 20again reuses the object instead of creating new one.