Speed and style of Math.max vs ternary operator in JavaScript
<p>In JavaScript, is it better to do this:</p>

<pre><code>var h = th &gt; ch ? th : ch;
</code></pre>

<p>or </p>

<pre><code>var h = Math.max(th, ch);
</code></pre>

<p>?</p>
