<h4 dir="auto">Issue Description</h4>
<p dir="auto">I was writing my code for a problem and testing an output of one of my variables when I got the error message that says "SyntaxError: Illegal return statement".</p>
<p dir="auto">I figured it it might be some additional code messing it up so I commented out things progressively until I finally just decided to comment out everything in the scope of the function and just return a plane number, and it is still giving me this error.</p>
<p dir="auto">I tried the hard refresh and clearing the local storage, and I still cannot get the issue to clear.</p>
<h4 dir="auto">Browser Information</h4>
<p dir="auto">*I am using the most updated version of Google Chrome 2016</p>
<ul dir="auto">
<li>I am using Windows 8</li>
</ul>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function sumPrimes(num) {  
  //var primes = [];
  //var x = 2;

  //do {

   // var wilsonTheorem = 0;

    //for (var i = 1; i &lt;= 13; i++){

      //wilsonTheorem += (i-1);


   // }

   /* if (wilsonTheorem%x &gt; 2){
      primes.push(x);
    }

    x++;

  } while (primes.length != num);*/


  return 5;
}

sumPrimes(3);"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">sumPrimes</span><span class="pl-kos">(</span><span class="pl-s1">num</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>  
  <span class="pl-c">//var primes = [];</span>
  <span class="pl-c">//var x = 2;</span>

  <span class="pl-c">//do {</span>

   <span class="pl-c">// var wilsonTheorem = 0;</span>

    <span class="pl-c">//for (var i = 1; i &lt;= 13; i++){</span>

      <span class="pl-c">//wilsonTheorem += (i-1);</span>


   <span class="pl-c">// }</span>

   <span class="pl-c">/* if (wilsonTheorem%x &gt; 2){</span>
<span class="pl-c">      primes.push(x);</span>
<span class="pl-c">    }</span>
<span class="pl-c"></span>
<span class="pl-c">    x++;</span>
<span class="pl-c"></span>
<span class="pl-c">  } while (primes.length != num);*/</span>


  <span class="pl-k">return</span> <span class="pl-c1">5</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>

<span class="pl-en">sumPrimes</span><span class="pl-kos">(</span><span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h4 dir="auto">Screenshot</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17515551/14271213/8ff87678-fac4-11e5-8b7c-7d1dc7756d1e.png"><img src="https://cloud.githubusercontent.com/assets/17515551/14271213/8ff87678-fac4-11e5-8b7c-7d1dc7756d1e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a href="https://gyazo.com/34f611dc15cbf4f756b835338504e63f" rel="nofollow"><img src="https://camo.githubusercontent.com/7404e8fe236131ff6b8770f3cc234b1d918f9a669891d0fa451849213d95c4c2/68747470733a2f2f692e6779617a6f2e636f6d2f33346636313164633135636266346637353662383335333338353034653633662e706e67" alt="https://gyazo.com/34f611dc15cbf4f756b835338504e63f" data-canonical-src="https://i.gyazo.com/34f611dc15cbf4f756b835338504e63f.png" style="max-width: 100%;"></a></p>