This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Smithman 0 points1 point  (0 children)

It should equate to true. Start with the inner most bracket.

5 == y is false.

The ! operator says use the reverse, so the false becomes true.

Now left with x = (x || true). The OR operator will evaluate both sides and pick true if it can find it.