invalid left-hand side in assignement console.log error 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"){
}