Having trouble understanding this javascript challenge question (please help!) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 12
Many thanks Jamie!!
26th Dec 2017, 8:49 PM
JMQ
JMQ - avatar