title: Method declaration difference between foo() {}, and foo: function() {}
body: <p>are there any kind of difference between these two types of declarations or is it just a short-hand thing?</p>
  <pre class="lang-js prettyprint-override"><code>const bar = {
    foo: function() { return 0 },
  }
  </code></pre>
  <pre class="lang-js prettyprint-override"><code>const bar = {
    foo() { return 0 },
  }
  </code></pre>