js shorthand for assign if null code example Example: if shorthand typescript const answer = x > 10 ? "greater than 10" : "less than 10";