uncaught exception: ReferenceError: invalid assignment left-hand side : @(shell):1:22 code example
Example: invalid left-hand side in assignment
// invalid left-hand side in assignment
// here "=" is used as the assign the operator to assign John to name
var name = "John"
// here "=" is used for comparison, but it should be "==" or "==="
if(name = "John" || name = "David"){
}