js inline if
var a = 2;
var b = 3;
var c = ((a < b) ? 'minor' : 'major');
Sticky Pingu
var a = 2;
var b = 3;
var c = ((a < b) ? 'minor' : 'major');
const answer = x > 10 ? "greater than 10" : "less than 10";
// Using ternary operator
if ( a ) { b } else { c }