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

Javascript Level - 4 -> Lesson - 8

Ternary operator answer please?
by

6 Answers

aashaykumar
kindly post your code here to see what is wrong in your code
afrideen
let x = 10;
let y = 1;
let z;
//your code here
(x > y)? z=x : z=y;
console.log("the value of z: " +z);

I'm confusing what to do, please explain the correct answer. Thank You!
afrideen
please help me I'm stuck in the lesson.
kshitijrana14
Hii afrideen!
please run your code again. We have resolved this issue

Thank you! Happy learning
afrideen
Thank you so much
SaravananRajendran
Hi even am also facing the problem in same place,
let x = 10;
let y = 1;
let z;
// your code comes here
(x > y)? z=x : z=y;
console.log("result is "+ z);

please kindly help me

Login / Signup to Answer the Question.