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

Saying use terenary operator in line no 5

let x = 2;
let y = 10;
let z;

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

0 Answers

No Answer posted yet.

Login / Signup to Answer the Question.