โconst can't reassign
JS โฉ statement โฉ declaration โฉ const โฉ can't reassign
a const can't be reassigned. ( ๐ const can't reassignโ)
replit๏ผconst can't reassign
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)
Last updated
Was this helpful?