<h4 dir="auto">Challenge Name</h4>
<p dir="auto">.freecodecamp.com/challenges/record-collection</p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">Even with the solution from the challenge guide the 2nd test does not pass<br>
After updateRecords(5439, "tracks", "Take a Chance on Me"), tracks should have "Take a Chance on Me" as the last element.</p>
<h4 dir="auto">Browser Information</h4>

<p dir="auto">tested on Windows 10 with firefox and edge and chrome</p>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// If relevant, paste all of your challenge code in here
function updateRecords(id, prop, value) {
  if (prop === &quot;tracks&quot; &amp;&amp; value !== &quot;&quot;) {
    collection[id][prop].push(value);
  } else if (value !== &quot;&quot;){
    collection[id][prop] = value;
  } else {
    delete collection[id][prop];
  }

  return collection;
}"><pre class="notranslate"><span class="pl-c">// If relevant, paste all of your challenge code in here</span>
<span class="pl-k">function</span> <span class="pl-en">updateRecords</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">,</span> <span class="pl-s1">prop</span><span class="pl-kos">,</span> <span class="pl-s1">value</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">prop</span> <span class="pl-c1">===</span> <span class="pl-s">"tracks"</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">value</span> <span class="pl-c1">!==</span> <span class="pl-s">""</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-s1">collection</span><span class="pl-kos">[</span><span class="pl-s1">id</span><span class="pl-kos">]</span><span class="pl-kos">[</span><span class="pl-s1">prop</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">value</span> <span class="pl-c1">!==</span> <span class="pl-s">""</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
    <span class="pl-s1">collection</span><span class="pl-kos">[</span><span class="pl-s1">id</span><span class="pl-kos">]</span><span class="pl-kos">[</span><span class="pl-s1">prop</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">value</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">delete</span> <span class="pl-s1">collection</span><span class="pl-kos">[</span><span class="pl-s1">id</span><span class="pl-kos">]</span><span class="pl-kos">[</span><span class="pl-s1">prop</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">collection</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h4 dir="auto">Screenshot</h4>

<p dir="auto">![screenshot-www freecodecamp com 2016-06-07 <code class="notranslate">21-32-40](https://cloud.githubusercontent.com/assets/1762608/15881945/89af329c-2cf7-11e6-8c0b-1d4a31a27c49.png)</code></p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-comments-to-clarify-code" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-use-comments-to-clarify-code</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">Adding a &lt;-- at the very first line of the code somehow added the --&gt; at the very last line which triggered the "Go to my next challenge" button as if it was correctly completed.</p>