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

What is error in the code of level 4, 8 lesson

let x = 10;
let y = 1;
let z;

z = (x > y) ? x : y;

console.log("Value of z: ",z);
by

1 Answer

AyyappanM
Your code should be something like the below,

console.log("Value of z: " +z);

Login / Signup to Answer the Question.