<p dir="auto">Today I've started JS chunk and I can see every assert for every step. Asserts still have "grayed-out" class, but are visible.<br>
For example here: <a href="http://freecodecamp.com/challenges/waypoint-declare-string-variables" rel="nofollow">http://freecodecamp.com/challenges/waypoint-declare-string-variables</a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9102888/9355725/064e4d0a-4695-11e5-8971-10962c9f56a1.png"><img src="https://cloud.githubusercontent.com/assets/9102888/9355725/064e4d0a-4695-11e5-8971-10962c9f56a1.png" alt="testest" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/confirm-the-ending#?solution=function%20confirmEnding%28str%2C%20target%29%20%7B%0A%20%20%2F%2F%20%22Never%20give%20up%20and%20good%20luck%20will%20find%20you.%22%0A%20%20%2F%2F%20--%20Falcor%0A%20%20%0A%20%20%2F%2Freturn%20str.endsWith%28target%29%3B%20-%20more%20elegant%20way%0A%20%20%2F*%0A%20%20if%28str.endsWith%28target%29%29%7B%0A%20%20%20%20return%20true%3B%20%0A%20%20%7D%0A%20%20else%7B%0A%20%20%20%20return%20false%3B%0A%20%20%7D%20*%2F%0A%20%20%0A%20%20var%20str2%20%3D%20str.substr%28str.length%20-%20target.length%29%3B%0A%20%20%0A%20%20if%28str2%20%3D%3D%3D%20target%29%7B%0A%20%20%20%20return%20true%3B%0A%20%20%7D%0A%20%20else%7B%0A%20%20%20%20return%20false%3B%0A%20%20%7D%0A%7D%20%0A%20%20%0A%20%20%0A%0AconfirmEnding%28%22Bastian%22%2C%20%22n%22%29%3B%0A" rel="nofollow">Confirm the Ending</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0</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 confirmEnding(str, target) {
  // &quot;Never give up and good luck will find you.&quot;
  // -- Falcor

  //return str.endsWith(target); - more elegant way
  /*
  if(str.endsWith(target)){
    return true; 
  }
  else{
    return false;
  } */

  var str2 = str.substr(str.length - target.length);

  if(str2 === target){
    return true;
  }
  else{
    return false;
  }
} 



confirmEnding(&quot;Bastian&quot;, &quot;n&quot;);
"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">confirmEnding</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">,</span> <span class="pl-s1">target</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-c">// "Never give up and good luck will find you."</span>
  <span class="pl-c">// -- Falcor</span>

  <span class="pl-c">//return str.endsWith(target); - more elegant way</span>
  <span class="pl-c">/*</span>
<span class="pl-c">  if(str.endsWith(target)){</span>
<span class="pl-c">    return true; </span>
<span class="pl-c">  }</span>
<span class="pl-c">  else{</span>
<span class="pl-c">    return false;</span>
<span class="pl-c">  } */</span>

  <span class="pl-k">var</span> <span class="pl-s1">str2</span> <span class="pl-c1">=</span> <span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-en">substr</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">-</span> <span class="pl-s1">target</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

  <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">str2</span> <span class="pl-c1">===</span> <span class="pl-s1">target</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
    <span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
  <span class="pl-kos">}</span>
  <span class="pl-k">else</span><span class="pl-kos">{</span>
    <span class="pl-k">return</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
  <span class="pl-kos">}</span>
<span class="pl-kos">}</span> 



<span class="pl-en">confirmEnding</span><span class="pl-kos">(</span><span class="pl-s">"Bastian"</span><span class="pl-kos">,</span> <span class="pl-s">"n"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Hello FCC,</p>
<p dir="auto">I noticed that this challenge have some very simple solution which uses endsWith(<a href="http://www.w3schools.com/jsref/jsref_endswith.asp" rel="nofollow">http://www.w3schools.com/jsref/jsref_endswith.asp</a>) JavaScript method to resolve this problem, so I would like to point that this challenge dosen't make sense when you can do it in one line of code. I'm sorry if I posted this on wrong place or bothering someone too much.</p>
<p dir="auto">Kind regards,<br>
Nemanja</p>