title: What's the meaning of ? and : in this function?
body: <p>I'm just started with google apps script and a'd like to know what is the meaning or the function of ? and : in this function. Thanks a lot for the help.</p>
  
  <pre><code>function comparar(a, b) {
  if (b[1] === a[1]) {
      return 0;
  }
  else {
      return (b[1] &lt; a[1]) ? -1 : 1;
  }
  </code></pre>
  
  <p>}</p>