Uncaught TypeError : Assignment to constant variable. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuestas
+ 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