Last updated 2 years ago
Was this helpful?
⟩ ⟩ ⟩ ⟩ can't reassign
a const can't be reassigned. ( 👉 const can't reassign)
replit:
👉 ⛔️ TypeError ⟩ assignment to constant variable❗️
const name = "Frank"; name = "Suzy"; // can't reassign❗ // ^^^^^^ // ⛔ TypeError: Assignment to constant variable. // (it means a const doesn't have to the "ability" to do reassignment)
YDKJS: Scope & Closures (v.2) ⟩ Ch. 5 ⟩