javascript shorthand if undefined code example Example: if shorthand typescript const answer = x > 10 ? "greater than 10" : "less than 10";