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

Unable to submit exercise level 4, lesson 8

Here's the code
let x = 10;
let y = 1;
let z;
// your code comes here
(x > y)?z = x:z = y;
console.log("Value of z: " + z);


Your code's output does not match the expected outcome for this exercise.

THE OUTCOME
CONSOLE
Value of z: 10
by

1 Answer

Swapnilyefvi
let x = 10;
let y = 1;
let z;
// your code comes here
(x > y)? z=x : z=y ;
console.log("Value of z:" + z);

Login / Signup to Answer the Question.