javascript inline variables if code example
Example 1: inline if else javascript
var a = 2;
var b = 3;
var c = ((a < b) ? 'minor' : 'major');
Example 2: javascript set variable inline
var x = 5, y = 6, z = 7;
var a = 10,
b = 30,
c = 90;