<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work</a><br>
At first, the text in the third instruction is right. But after add the '$(document).ready(function() {', it lost a right bracket after document. In addition, i can't get the last instrcution of 'close' right, this may be my personal fault.</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/confirm-the-ending#?solution=function%20end%28str%2C%20target%29%20%7B%0A%20%20return%20str.endsWith%28target%29%3B%0A%7D%0A%0Aend%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 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4</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 end(str, target) {
  return str.endsWith(target);
}

end(&quot;Bastian&quot;, &quot;n&quot;);
"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">end</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-k">return</span> <span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-en">endsWith</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-kos">}</span>

<span class="pl-en">end</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">It's not a bug, but I didn't want to post what might be considered a way to cheat. Is using my ridiculously simple solution cheating, or missing the point of the challenge?</p>