DEV Community 👩‍💻👨‍💻

Sandeep kamboj
Sandeep kamboj

Posted on

Find Greatest Number Using Ternary Operator

var a=62;
var b=200;
var c=8;
var largestnumber = (a>b&&a>c?a:(b>a&&b>c?b:c));

Top comments (0)

We are hiring! Do you want to be our Senior Platform Engineer? Forem is hiring a Senior Platform Engineer

If you're interested in ops and site reliability and capable of dipping in to our Linux stack, we'd love your help shoring up our systems!