+ 13

Having trouble understanding this javascript challenge question (please help!)

The question is: What is the output of this code? Var x = 3; Var y = 4; alert((x-x||y-x)?'a':'b'); Answer: Output = a ------------------------------------------------- Can someone help explain this?

26th Dec 2017, 8:31 PM
JMQ
JMQ - avatar
1 Odpowiedź
+ 12
Many thanks Jamie!!
26th Dec 2017, 8:49 PM
JMQ
JMQ - avatar