JavaScript
JavaScript tried to assign to something that is not assignable
JavaScript found an assignment target that cannot appear on the left side of =, such as the result of an expression.
JavaScript
JavaScript found an assignment target that cannot appear on the left side of =, such as the result of an expression.
Observed message
SyntaxError: invalid assignment left-hand side
Why it happens
How to fix it
Official reference
MDN: SyntaxError: invalid assignment left-hand sideRelated errors
Explore more