title: Why are Octal numeric literals not allowed in strict mode (and what is the workaround?)
body: <p>Why are Octal numeric literals not allowed in <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Strict_mode" rel="noreferrer">JavaScript strict mode</a>? What is the harm?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>"use strict";
  var x = 010; //Uncaught SyntaxError: Octal literals are not allowed in strict mode.</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1&gt;Check browser console for errors&lt;/h1&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>In case a developer <strong>needs</strong> to use <a href="https://en.wikipedia.org/wiki/Octal" rel="noreferrer">Octals</a> (which can mistakenly change a <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Strict_mode#Converting_mistakes_into_errors" rel="noreferrer">numbers meaning</a>), is there a workaround?</p>