I can't find an answer to this, after a little research.
Given this:
'Hello' || true ? true : false
The result is true
, which to me, doesn't make sense. Because the first value was truthy, I would expect the result of this to be 'Hello'
, and skip the ternary. However, what it instead does is use the result of the ternary.
Why is that?