I would like to know what's the shortcode of if in javascript?
Like in php:
$res = ($x > $y)? $x: $y;
What's its conversion in javascript?