Assignments right to left JavaScript

In one of the lessons it says: “Assignment always goes from right to left. Everything to the right of the = operator is resolved before the value is assigned to the variable to the left of the operator.”

Can someone explain me this in another way, I don’t think I get it like it is stated.

Thanks in advance for the help!!

1 Like

That means that
example = 1 + 2;
is evaluated as
example = (1 + 2);
instead of
(example = 1) + 2;

1 Like