JavaScript 2023-08-20 JavaScript - Inline If Inline are done with the ? : operators. Here is an example 123var a = 2;var b = 3; var c = (a < b) ? "a is less than b" : "a is not less than b"; c will be initialized to ‘major’. References https://stackoverflow.com/questions/10270351/how-to-write-an-inline-if-statement-in-javascript