Came across weird javascript operation
<p>I am working on a project, designed by someone else. I came across the following operation. I have no idea what it is doing. It seems to be returning 1.</p>

<p>Anyone care to elaborate?
Thank you!</p>

<pre><code>   ( 7  &gt; 8?2:1)
</code></pre>
