Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Is there a bug on this level 4 lesson 8 on ternary operators?

The solution i provided is;

z=(x > y)?x:y;
console.log("Value of z:" + z);
by

1 Answer

sam5epi0l
Hi, This is how, it is supposed to be done

(x > y)? z = x : z = y;
console.log("Value of z:" + z);

Login / Signup to Answer the Question.