<h4 dir="auto">Challenge Name</h4>

<p dir="auto">Data Visualization with D3: Work with Dynamic Data in D3</p>
<h4 dir="auto">Issue Description</h4>

<p dir="auto">Use of same const name (in this case 'dataset') from previous challenge attempt causes tests to fail, with the error "Identifier 'dataset' has already been declared".</p>
<p dir="auto">Changing the name of the const from dataset to another name solves the issue.</p>
<h4 dir="auto">Browser Information</h4>

<ul dir="auto">
<li>Browser Name, Version: Chrome 55.0.2883.87 (64-bit)</li>
<li>Operating System: Linux Mint 18</li>
<li>Mobile, Desktop, or Tablet: Desktop</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="const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];
    
    d3.select(&quot;body&quot;).selectAll(&quot;h2&quot;)
      .data(dataset)
      .enter()
      .append(&quot;h2&quot;)
      // Add your code below this line
      .text((d) =&gt; d + &quot; USD&quot;);
      
      // Add your code above this line

"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">dataset</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">12</span><span class="pl-kos">,</span> <span class="pl-c1">31</span><span class="pl-kos">,</span> <span class="pl-c1">22</span><span class="pl-kos">,</span> <span class="pl-c1">17</span><span class="pl-kos">,</span> <span class="pl-c1">25</span><span class="pl-kos">,</span> <span class="pl-c1">18</span><span class="pl-kos">,</span> <span class="pl-c1">29</span><span class="pl-kos">,</span> <span class="pl-c1">14</span><span class="pl-kos">,</span> <span class="pl-c1">9</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
    
    <span class="pl-s1">d3</span><span class="pl-kos">.</span><span class="pl-en">select</span><span class="pl-kos">(</span><span class="pl-s">"body"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">selectAll</span><span class="pl-kos">(</span><span class="pl-s">"h2"</span><span class="pl-kos">)</span>
      <span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">(</span><span class="pl-s1">dataset</span><span class="pl-kos">)</span>
      <span class="pl-kos">.</span><span class="pl-en">enter</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
      <span class="pl-kos">.</span><span class="pl-en">append</span><span class="pl-kos">(</span><span class="pl-s">"h2"</span><span class="pl-kos">)</span>
      <span class="pl-c">// Add your code below this line</span>
      <span class="pl-kos">.</span><span class="pl-en">text</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">d</span> <span class="pl-c1">+</span> <span class="pl-s">" USD"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
      
      <span class="pl-c">// Add your code above this line</span>
</pre></div>
<h4 dir="auto">Screenshot</h4>

<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11321426/23141755/4f628ef4-f786-11e6-91e8-ee83980dba24.png"><img src="https://cloud.githubusercontent.com/assets/11321426/23141755/4f628ef4-f786-11e6-91e8-ee83980dba24.png" alt="screenshot from 2017-02-20 16-04-19" style="max-width: 100%;"></a></p>
<p dir="auto">D3 Challenges Dataset identifier dataset has already been declared error.</p>
<p dir="auto">Essentially the D3 challenges won't run after 1 failed attempt.</p>
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/data-visualization-with-d3/work-with-dynamic-data-in-d3" rel="nofollow">work-with-dynamic-data-in-d3</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="

&lt;body&gt;
  &lt;script&gt;
    let dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];
    
    d3.select(&quot;body&quot;).selectAll(&quot;h2&quot;)
      .data(dataset)
      .enter()
      .append(&quot;h2&quot;)
      // Add your code below this line
      
      .text((d) =&gt; d + ' USD');
      
      // Add your code above this line
  &lt;/script&gt;
&lt;/body&gt;
"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span>
  <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>
    <span class="pl-k">let</span> <span class="pl-s1">dataset</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">12</span><span class="pl-kos">,</span> <span class="pl-c1">31</span><span class="pl-kos">,</span> <span class="pl-c1">22</span><span class="pl-kos">,</span> <span class="pl-c1">17</span><span class="pl-kos">,</span> <span class="pl-c1">25</span><span class="pl-kos">,</span> <span class="pl-c1">18</span><span class="pl-kos">,</span> <span class="pl-c1">29</span><span class="pl-kos">,</span> <span class="pl-c1">14</span><span class="pl-kos">,</span> <span class="pl-c1">9</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
    
    <span class="pl-s1">d3</span><span class="pl-kos">.</span><span class="pl-en">select</span><span class="pl-kos">(</span><span class="pl-s">"body"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">selectAll</span><span class="pl-kos">(</span><span class="pl-s">"h2"</span><span class="pl-kos">)</span>
      <span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">(</span><span class="pl-s1">dataset</span><span class="pl-kos">)</span>
      <span class="pl-kos">.</span><span class="pl-en">enter</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
      <span class="pl-kos">.</span><span class="pl-en">append</span><span class="pl-kos">(</span><span class="pl-s">"h2"</span><span class="pl-kos">)</span>
      <span class="pl-c">// Add your code below this line</span>
      
      <span class="pl-kos">.</span><span class="pl-en">text</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">d</span> <span class="pl-c1">+</span> <span class="pl-s">' USD'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
      
      <span class="pl-c">// Add your code above this line</span>
  <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>
<span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span></pre></div>