+ 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
2 odpowiedzi
+ 12
Many thanks Jamie!!
26th Dec 2017, 8:49 PM
JMQ
JMQ - avatar