AJ #Level 20 End Game No, output is "a is equal to 5"
Rest are correct, but single equal sign(=) assigned a's value to 5, where double equal sign(==) checks whether the operands' values are equal.
Copy that and check this in the playground
Look above example like this.
x = (a< 5) ? y : ((a = 5) ? z : w);
Here is 2 ternary operator so in first ternery operator a < 5 is false so output will be
(a = 5) ? z : w //here a = 5 false so output will be w
= 'a is greater than 5'
Edited : here a = 5 not a == 5 so answer will be 'a is equal to 5'