Uncaught TypeError : Assignment to constant variable. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Uncaught TypeError : Assignment to constant variable.

Const isIsland = false; isIsland = true; Plz.. Explain this error.

18th Dec 2021, 1:11 AM
Pravin N
Pravin N - avatar
2 Answers
+ 3
Unlike other variables that can be changed, const cannot be altered after it has been created.
18th Dec 2021, 1:25 AM
Elijah Msheliza
Elijah Msheliza - avatar
0
Ok bro thanks for your support 😊
18th Dec 2021, 2:59 AM
Pravin N
Pravin N - avatar