How can this be explained
These two are as expected
"x" || "y"
=> "x"
"x" || "y" == "y"
=> "x"
But this?
"x" || "y" == "y" ? "a" : "b"
=> "a"
Edit: I was expecting "x" for the last expression. Now got the answer. I was not clear with the operator precedence of ? and ||