title: Why does 00.0 cause a syntax error?
body: <p>This is weird.  This is what happens at the JavaScript console in Chrome (version 42.0.2311.135, 64-bit).</p>
  
  <pre class="lang-none prettyprint-override"><code>&gt; 0
  &lt; 0
  &gt; 00
  &lt; 0
  &gt; 0.0
  &lt; 0
  &gt; 00.0
  X Uncaught &gt; SyntaxError: Unexpected number
  </code></pre>
  
  <p>Firefox 37.0.2 does the same, although its error message is:</p>
  
  <pre class="lang-none prettyprint-override"><code>SyntaxError: missing ; before statement
  </code></pre>
  
  <p>There's probably some technical explanation regarding the way JavaScript parses numbers, and perhaps it can only happen when tinkering at the console prompt, but it still seems wrong.</p>
  
  <p>Why does it do that?</p>