Q:

Are parentheses required when assigning values using comparisons?

Are parentheses required when assigning values using comparisons? Are there any cross browser problems or odd behavior when not using parentheses in these cases? Please see the following code:
var b1 = a == b ? a < 5 : b >= 5;

var b2 = a <= b ? a < 5 && c < 10 : a > 5 || c == 15;

return c == a ? b1 && b2 : b1 || b2;

Please note the numbers and vars are completely arbitrary, just wondering about whether or not the syntax is ok. Thanks!

A:

There will be no odd behavior, it may be easier to understand with parens though.

