<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8863296/14146427/203f62f8-f65d-11e5-8a4a-dbeff09fb11d.png"><img src="https://cloud.githubusercontent.com/assets/8863296/14146427/203f62f8-f65d-11e5-8a4a-dbeff09fb11d.png" alt="camp" style="max-width: 100%;"></a><br>
Challenge <a href="https://www.freecodecamp.com/challenges/local-scope-and-functions#?solution=%0Afunction%20myFunction%28%29%20%7B%0A%20%20'use%20strict'%3B%0A%20%20var%20myVar%3B%0A%20%20%0A%20%20console.log%28myVar%29%3B%0A%7D%0AmyFunction%28%29%3B%0A%0A%2F%2F%20run%20and%20check%20the%20console%20%0A%2F%2F%20myVar%20is%20not%20defined%20outside%20of%20myFunction%0Aconsole.log%28myVar%29%3B%0A%0A%2F%2F%20now%20remove%20the%20console%20log%20line%20to%20pass%20the%20test%0A%0A" rel="nofollow">Local Scope and Functions</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
function myFunction() {
  'use strict';
  var myVar = &quot;&quot;;

  console.log(myVar);
}
myFunction();

// run and check the console 
// myVar is not defined outside of myFunction
console.log(myVar);

// now remove the console log line to pass the test

"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-s">'use strict'</span><span class="pl-kos">;</span>
  <span class="pl-k">var</span> <span class="pl-s1">myVar</span> <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">;</span>

  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">myVar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-c">// run and check the console </span>
<span class="pl-c">// myVar is not defined outside of myFunction</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">myVar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-c">// now remove the console log line to pass the test</span>
</pre></div>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/local-scope-and-functions#?solution=function%20myFunction%28%29%20%7B%0A%20%20'use%20strict'%3B%0A%20%20%0A%20%20%20var%20myVar%20%3D%20%22test%22%3B%20%20%0A%20%20console.log%28myVar%29%3B%0A%7D%0AmyFunction%28%29%3B%0A%0A%2F%2F%20run%20and%20check%20the%20console%20%0A%2F%2F%20myVar%20is%20not%20defined%20outside%20of%20myFunction%0Aconsole.log%28myVar%29%3B%0A%0A%2F%2F%20now%20remove%20the%20console%20log%20line%20to%20pass%20the%20test%0A%0A" rel="nofollow">Local Scope and Functions</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function myFunction() {
  'use strict';

   var myVar = &quot;test&quot;;  
  console.log(myVar);
}
myFunction();

// run and check the console 
// myVar is not defined outside of myFunction
console.log(myVar);

// now remove the console log line to pass the test

"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-s">'use strict'</span><span class="pl-kos">;</span>

   <span class="pl-k">var</span> <span class="pl-s1">myVar</span> <span class="pl-c1">=</span> <span class="pl-s">"test"</span><span class="pl-kos">;</span>  
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">myVar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-c">// run and check the console </span>
<span class="pl-c">// myVar is not defined outside of myFunction</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">myVar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-c">// now remove the console log line to pass the test</span>
</pre></div>
<p dir="auto">href="<a href="http://content.screencast.com/users/Pisstt/folders/Default/media/d1d59d3a-6ca0-493b-9910-3c421028f88b/2016-01-17_1925.png%22%3E" rel="nofollow">http://content.screencast.com/users/Pisstt/folders/Default/media/d1d59d3a-6ca0-493b-9910-3c421028f88b/2016-01-17_1925.png"&gt;</a><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/94333b194d57a5af43f64dcc2523d5fea5332f0343d20a92c18cdab737173b64/687474703a2f2f636f6e74656e742e73637265656e636173742e636f6d2f75736572732f5069737374742f666f6c646572732f44656661756c742f6d656469612f64316435396433612d366361302d343933622d393931302d3363343231303238663838622f323031362d30312d31375f313932352e706e67"><img src="https://camo.githubusercontent.com/94333b194d57a5af43f64dcc2523d5fea5332f0343d20a92c18cdab737173b64/687474703a2f2f636f6e74656e742e73637265656e636173742e636f6d2f75736572732f5069737374742f666f6c646572732f44656661756c742f6d656469612f64316435396433612d366361302d343933622d393931302d3363343231303238663838622f323031362d30312d31375f313932352e706e67" width="600" height="300" border="0" data-canonical-src="http://content.screencast.com/users/Pisstt/folders/Default/media/d1d59d3a-6ca0-493b-9910-3c421028f88b/2016-01-17_1925.png" style="max-width: 100%;"></a></p>