<p dir="auto">When the while loop is infinite (say by not incrementing the iterator), the error is not surfaced, and the last test does not appear.The current behavior does not indicate that there is a problem with the code; the experience just breaks silently.</p>
<p dir="auto">This may be expected behavior, as the infinite evaluation will preclude the second test running, but there may be a more elegant way to surface this issue. Let me know how best to follow up on this, or if it is duplicated elsewhere.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13111622/11424788/cf92a53c-9404-11e5-90f5-e58f2e443b24.png"><img src="https://cloud.githubusercontent.com/assets/13111622/11424788/cf92a53c-9404-11e5-90f5-e58f2e443b24.png" alt="screen shot 2015-11-26 at 6 13 13 am" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-iterate-with-javascript-while-loops?solution=var%20myArray%20%3D%20%5B%5D%3B%0Avar%20i%20%3D%200%3B%0A%0A%2F%2F%20Only%20change%20code%20below%20this%20line.%0A%0Awhile%20%28i%20%3C%205%29%7B%0A%20%20myArray.push%28i%29%3B%0A%20%20%0A%7D%0A%0A%2F%2F%20Only%20change%20code%20above%20this%20line.%0A%0Aif%28typeof%28myArray%29%20!%3D%3D%20%22undefined%22%29%7B%28function%28%29%7Breturn%20myArray%3B%7D%29%28%29%3B%7D%0A%0A" rel="nofollow">Waypoint: Iterate with JavaScript While Loops</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 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="var myArray = [];
var i = 0;

// Only change code below this line.

while (i &lt; 5){
  myArray.push(i);

}

// Only change code above this line.

if(typeof(myArray) !== &quot;undefined&quot;){(function(){return myArray;})();}

"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myArray</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span>

<span class="pl-c">// Only change code below this line.</span>

<span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">5</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
  <span class="pl-s1">myArray</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

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

<span class="pl-c">// Only change code above this line.</span>

<span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-k">typeof</span><span class="pl-kos">(</span><span class="pl-s1">myArray</span><span class="pl-kos">)</span> <span class="pl-c1">!==</span> <span class="pl-s">"undefined"</span><span class="pl-kos">)</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span><span class="pl-k">return</span> <span class="pl-s1">myArray</span><span class="pl-kos">;</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-kos">}</span>
</pre></div>
<p dir="auto">Thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/d3ddd/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/d3ddd">@d3ddd</a> for reporting this and including the link.</p>
<p dir="auto">Warning - this will cause an infinite loop and crash your browser, but if you still take a look at the code and confirm it is indeed an infinite loop.</p>
<p dir="auto">We used to have safeguards against infinite loops, but it seems those are no longer working (we've gotten several complaints in the past few days about this all the sudden).</p>
<p dir="auto"><a href="http://freecodecamp.com/challenges/bonfire-spinal-tap-case#?solution=function%20spinalCase(str)%20%7B%0A%20%20%2F%2F%20%22It's%20such%20a%20fine%20line%20between%20stupid%2C%20and%20clever.%22%0A%20%20%2F%2F%20--David%20St.%20Hubbins%0A%20%20%0A%20%20if(str.indexOf('%20')%20%3D%3D%3D%20-1%20%26%26%20str.indexOf('_')%20%3D%3D%3D%20-1)%20%7B%0A%20%20%20%20%0A%20%20%20%20str%20%3D%20str.split('')%3B%0A%20%20%20%20%0A%20%20%20%20for(var%20i%3D0%3B%20i%3Cstr.length%3B%20i%2B%2B)%20%7B%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20if(str%5Bi%5D%20%3D%3D%3D%20str%5Bi%5D.toUpperCase())%20%7B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20str.splice(i%2C%200%2C%20'%20')%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%0A%20%20%20%20%7D%0A%20%20%20%20%0A%20%20%7D%0A%20%20%0A%20%20%0A%20%20%0A%20%20%20return%20str.replace(%2F%20%2Fg%2C%20'-').replace(%2F_%2Fg%2C%20'-').toLowerCase()%3B%0A%7D%0A%0AspinalCase('This%20Is%20Spinal%20Tap')%3B%0A%0A%2F%2FNOTES%3A%0A%2F%2F%20%20%20%20%20%20If%20no%20spaces%20-%20or%20_%20then%20Turn%20str%20into%20array.%20Look%20for%20capital%20letters%20and%20insert%20space%20before%20the%20capital%0A%2F%2F%20%20%20%20%20%20then%20you%20can%20join%20array%20back%20into%20screen%20and%20perfom%20classci%20regex%20like%20alrady%20done%20son.%0A" rel="nofollow">http://freecodecamp.com/challenges/bonfire-spinal-tap-case#?solution=function%20spinalCase(str)%20%7B%0A%20%20%2F%2F%20%22It's%20such%20a%20fine%20line%20between%20stupid%2C%20and%20clever.%22%0A%20%20%2F%2F%20--David%20St.%20Hubbins%0A%20%20%0A%20%20if(str.indexOf('%20')%20%3D%3D%3D%20-1%20%26%26%20str.indexOf('_')%20%3D%3D%3D%20-1)%20%7B%0A%20%20%20%20%0A%20%20%20%20str%20%3D%20str.split('')%3B%0A%20%20%20%20%0A%20%20%20%20for(var%20i%3D0%3B%20i%3Cstr.length%3B%20i%2B%2B)%20%7B%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20if(str%5Bi%5D%20%3D%3D%3D%20str%5Bi%5D.toUpperCase())%20%7B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20str.splice(i%2C%200%2C%20'%20')%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%0A%20%20%20%20%7D%0A%20%20%20%20%0A%20%20%7D%0A%20%20%0A%20%20%0A%20%20%0A%20%20%20return%20str.replace(%2F%20%2Fg%2C%20'-').replace(%2F_%2Fg%2C%20'-').toLowerCase()%3B%0A%7D%0A%0AspinalCase('This%20Is%20Spinal%20Tap')%3B%0A%0A%2F%2FNOTES%3A%0A%2F%2F%20%20%20%20%20%20If%20no%20spaces%20-%20or%20_%20then%20Turn%20str%20into%20array.%20Look%20for%20capital%20letters%20and%20insert%20space%20before%20the%20capital%0A%2F%2F%20%20%20%20%20%20then%20you%20can%20join%20array%20back%20into%20screen%20and%20perfom%20classci%20regex%20like%20alrady%20done%20son.%0A</a></p>