<h4 dir="auto">Challenge</h4>
<p dir="auto">Using Objects for Lookups<br>
<a href="https://www.freecodecamp.com/challenges/using-objects-for-lookups" rel="nofollow">https://www.freecodecamp.com/challenges/using-objects-for-lookups</a></p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">Cannot progress to the next challenge although all conditions are met</p>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Google Chrome, Version: Version 51.0.2704.106 (64-bit)</li>
<li>Operating System: Mac OSX v10.11.6</li>
<li>Mobile, Desktop, or Tablet: Laptop</li>
</ul>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Setup
function phoneticLookup(val) {
  var result = &quot;&quot;;


  // Only change code below this line

  lookup = {
    alpha: 'Adams',
    bravo: 'Boston',
    charlie: 'Chicago',
    delta: 'Denver',
    echo: 'Easy',
    foxtrot: 'Frank'
  };

  result = lookup[val]; //must use [ ] notation if looking up variables
  // Only change code above this line

  return result;
}

// Change this value to test
phoneticLookup(&quot;alpha&quot;);
"><pre class="notranslate"><span class="pl-c">// Setup</span>
<span class="pl-k">function</span> <span class="pl-en">phoneticLookup</span><span class="pl-kos">(</span><span class="pl-s1">val</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-k">var</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">;</span>


  <span class="pl-c">// Only change code below this line</span>

  <span class="pl-s1">lookup</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
    <span class="pl-c1">alpha</span>: <span class="pl-s">'Adams'</span><span class="pl-kos">,</span>
    <span class="pl-c1">bravo</span>: <span class="pl-s">'Boston'</span><span class="pl-kos">,</span>
    <span class="pl-c1">charlie</span>: <span class="pl-s">'Chicago'</span><span class="pl-kos">,</span>
    <span class="pl-c1">delta</span>: <span class="pl-s">'Denver'</span><span class="pl-kos">,</span>
    <span class="pl-c1">echo</span>: <span class="pl-s">'Easy'</span><span class="pl-kos">,</span>
    <span class="pl-c1">foxtrot</span>: <span class="pl-s">'Frank'</span>
  <span class="pl-kos">}</span><span class="pl-kos">;</span>

  <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">lookup</span><span class="pl-kos">[</span><span class="pl-s1">val</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">//must use [ ] notation if looking up variables</span>
  <span class="pl-c">// Only change code above this line</span>

  <span class="pl-k">return</span> <span class="pl-s1">result</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>

<span class="pl-c">// Change this value to test</span>
<span class="pl-en">phoneticLookup</span><span class="pl-kos">(</span><span class="pl-s">"alpha"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h4 dir="auto">Screenshot</h4>

<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7964516/17146887/78257330-5360-11e6-81a8-06921f7d636c.jpg"><img src="https://cloud.githubusercontent.com/assets/7964516/17146887/78257330-5360-11e6-81a8-06921f7d636c.jpg" alt="screenshot 2016-07-26 18 39 56" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge tests for jQuery fail to run if syntax errors are present in a campers code.</p>
<p dir="auto">Examples:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161661570" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9289" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9289/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9289">#9289</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159738958" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9082" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9082/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9082">#9082</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163218773" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9470" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9470/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9470">#9470</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164753410" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9672" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9672/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9672">#9672</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="165201340" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9698" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9698/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9698">#9698</a></p>
<p dir="auto">What is stopping the tests running? Can we fix it?</p>
<p dir="auto">Is there a way to lint jQuery in codemirror so campers get visual clues to syntax errors, like in the JS challenges?</p>
<p dir="auto">-Or-</p>
<p dir="auto">When there is a syntax error, can we present a modal to the camper saying there is a syntax error present in their code when they click 'Run tests'?</p>