"use strict" in JavaScript doesn't work?
<p>According to  <a href="http://javascriptweblog.wordpress.com/2011/05/03/javascript-strict-mode/#more-804" rel="nofollow">this article</a> </p>

<blockquote>
  <p>Adding “use strict” as the first statement¹ in your JavaScript code
  will enforce Strict Mode over the entire</p>
</blockquote>

<p>So why :</p>

<pre><code>"use strict";
012; 
</code></pre>

<p>Doesn't throw errors</p>

<p>while </p>

<pre><code>(function () {
    "use strict";
    012; })();
</code></pre>

<p>does ?  <em>(Octal literals are not allowed in strict mode.)</em></p>

<p><a href="http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/" rel="nofollow">John resig says nothing about it. he just says :</a> </p>

<blockquote>
  <p>Simple. Toss this at the top of a program to enable it for the whole
  script:</p>
  
  <p>"use strict"; Or place it within a function to turn on strict mode
  only within that context.</p>
  
  <p>function imStrict(){   "use strict";   // ... your code ... }</p>
</blockquote>

<h1>edit :</h1>

<p><img src="http://i.stack.imgur.com/ZSkBO.gif" alt="enter image description here"></p>

<h1>edit #2.</h1>

<p>I tested the code in console.(chrome). in jsbin sample - it is working. still ,  I dont understand why it behave different in console.</p>
