js inline if statments do two actions code example Example: inline if else javascript var a = 2; var b = 3; var c = ((a < b) ? 'minor' : 'major');