title: Confused by shorthand syntax: x > 0 ? 1 : -1;
body: <p>What does the following Javascript syntax mean? Please describe the whole syntax:</p>
  
  <pre><code>var x = 0;
  x &gt; 0 ? 1 : -1;  // confused about this line
  alert(x);
  </code></pre>