May 25, 2023
Program to use Ternary Operator JavaScript Language
let a = 10;
let b = 20;
let max;
max = a > b ? a : b;
console.log("Max Number is =", max);
Output
Max Number is = 20
by : Suhel Akhtar
Quick Summary:
Ternary Operators using in JavaScript program