<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> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">For this problem, I used the following code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
});&lt;/script&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">type</span>="<span class="pl-s">text/javascript</span>"<span class="pl-kos">&gt;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</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-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">The last 3 learning 'goals' will show checked and complete, but the first one: "Create a script element" will not for some reason. Not sure why. Thanks for your time</p>
<p dir="auto"><a href="mailto:williamroberts643@hotmail.com">williamroberts643@hotmail.com</a></p>
<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> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">The working code (the enter inside the anonymous function is optional)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;script&gt;
  $(document).ready(function(){

  });
&lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;script&gt;
  $(document).ready(function(){

  });
&lt;/script&gt;
</code></pre></div>
<p dir="auto">However there are several <em>versions</em> that do not satisfy the two last tests.</p>
<p dir="auto">Fails test 3 (the space between <code class="notranslate">[...]ready(</code> and <code class="notranslate">function</code>)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;script&gt;
  $(document).ready( function(){ 

  });
&lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;script&gt;
  $(document).ready( function(){ 

  });
&lt;/script&gt;
</code></pre></div>
<p dir="auto">Fails test 4 (closing with <code class="notranslate">});</code>)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;script&gt;
  $(document).ready(function(){ });
&lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;script&gt;
  $(document).ready(function(){ });
&lt;/script&gt;
</code></pre></div>
<p dir="auto">Given that javascript is a language where whitespace is (mostly) insignificant.</p>