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

LEVEL 4 > LESSON 8 not working

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

3 Answers

sam5epi0l
Hi Harshad, This code is correct. What error you got?
harshadx53cp
Hi Sam , unable to submit it is showing add correct input similar kind of error
sam5epi0l
Try now, with this:

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.