<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">When trying to write out the following code, the browser becomes unresponsive.<br>
$($(".slot")[0]).html(slotOne);</p>
<p dir="auto">It seems natural to start typing out <code class="notranslate">$($</code>. When the open paren is typed, the editor auto-completes the closing paren <code class="notranslate">$()</code> then when typing the second <code class="notranslate">$</code>, the browser stops responding: <code class="notranslate">$($)</code></p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-inventory-update" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-inventory-update</a> has an issue.</p>
<p dir="auto">The following code returns the good value, but an error appears in the console nevertheless "Uncaught TypeError: Cannot set property 'err' of undefined", and then the page needs to be reloaded in order to be able to run new code.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// by mathieu_roy
function inventory(arr1, arr2) {
  // All inventory must be accounted for or you're fired!
  arr = [];
  for(var i in arr1) {
    match = false;
    for(var j in arr2) {
      if(arr1[i][1] === arr2[j][1]) {
        arr.push([arr1[i][0] + arr2[j][0], arr1[i][1]]);
        console.log([arr1[i][0] + arr2[j][0], arr1[i][1]]);
        match = true;
        break;
      }
    }
    if(!match) {
      arr.push([arr1[i][0], arr1[i][1]]);
      console.log([arr1[i][0], arr1[i][1]]);
    }
  }

  for(var k in arr2) {
    match = false;
    for(var l in arr1) {
      if(arr2[k][1] === arr1[l][1]) {
        match = true;
        break;
      }
    }
    if(!match) {
      arr.push([arr2[k][0], arr2[k][1]]);
      console.log([arr2[k][0], arr2[k][1]]);
    }
  }

  return arr;
}

// Example inventory lists
var curInv = [
    [21, 'Bowling Ball'],
    [2, 'Dirty Sock'],
    [1, 'Hair Pin'],
    [5, 'Microphone']
];

var newInv = [
    [2, 'Hair Pin'],
    [3, 'Half-Eaten Apple'],
    [67, 'Bowling Ball'],
    [7, 'Toothpaste']
];

inventory(curInv, newInv);"><pre class="notranslate"><code class="notranslate">// by mathieu_roy
function inventory(arr1, arr2) {
  // All inventory must be accounted for or you're fired!
  arr = [];
  for(var i in arr1) {
    match = false;
    for(var j in arr2) {
      if(arr1[i][1] === arr2[j][1]) {
        arr.push([arr1[i][0] + arr2[j][0], arr1[i][1]]);
        console.log([arr1[i][0] + arr2[j][0], arr1[i][1]]);
        match = true;
        break;
      }
    }
    if(!match) {
      arr.push([arr1[i][0], arr1[i][1]]);
      console.log([arr1[i][0], arr1[i][1]]);
    }
  }

  for(var k in arr2) {
    match = false;
    for(var l in arr1) {
      if(arr2[k][1] === arr1[l][1]) {
        match = true;
        break;
      }
    }
    if(!match) {
      arr.push([arr2[k][0], arr2[k][1]]);
      console.log([arr2[k][0], arr2[k][1]]);
    }
  }

  return arr;
}

// Example inventory lists
var curInv = [
    [21, 'Bowling Ball'],
    [2, 'Dirty Sock'],
    [1, 'Hair Pin'],
    [5, 'Microphone']
];

var newInv = [
    [2, 'Hair Pin'],
    [3, 'Half-Eaten Apple'],
    [67, 'Bowling Ball'],
    [7, 'Toothpaste']
];

inventory(curInv, newInv);
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5873950/8393936/14d3f040-1cf2-11e5-981e-43ac032822a5.png"><img src="https://cloud.githubusercontent.com/assets/5873950/8393936/14d3f040-1cf2-11e5-981e-43ac032822a5.png" alt="fcc - inventory update" style="max-width: 100%;"></a></p>