JavaScript
JavaScript tried to reassign a const variable
JavaScript threw because code attempted to assign a new value to a constant binding.
JavaScript
JavaScript threw because code attempted to assign a new value to a constant binding.
Observed message
TypeError: invalid assignment to const "x"
Why it happens
How to fix it
Official reference
MDN: TypeError: invalid assignment to const xRelated errors
Explore more