Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[beta] D3 - const variables fail tests until browser refresh #16128

Closed
SvetaSR opened this issue Nov 28, 2017 · 1 comment
Closed

[beta] D3 - const variables fail tests until browser refresh #16128

SvetaSR opened this issue Nov 28, 2017 · 1 comment

Comments

@SvetaSR
Copy link

SvetaSR commented Nov 28, 2017

Data Visualization with D3: Work with Dynamic Data in D3

https://beta.freecodecamp.org/en/challenges/data-visualization-with-d3/work-with-dynamic-data-in-d3

Issue Description

When running the test twice, the second time always fail because the const variable (dataset) has already been declared on the first time. The test returns the following error:
"Identifier 'dataset' has already been declared"
The issue also occurs when moving from one exercise to the other. The second one will return this error, if the code was processed in the first exercise.

Browser Information

  • Browser Name, Version: Chrome 62.0.3202.94 (Official Build) (64-bit)
  • Operating System: Windows 10
  • Mobile, Desktop, or Tablet: Desktop

Your Code

const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];

d3.select("body").selectAll("h2")
  .data(dataset)
  .enter()
  .append("h2")
  // Add your code below this line
  
  .text((d) => d + " USD");
  
  // Add your code above this line

Screenshot

11-28-2017 9-43-27 am

@SvetaSR SvetaSR changed the title D3 - const variables fail tests until browser refresh Beta site - D3 - const variables fail tests until browser refresh Nov 28, 2017
@raisedadead raisedadead added beta scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. help wanted Open for all. You do not need permission to work on these. labels Nov 28, 2017
@raisedadead raisedadead changed the title Beta site - D3 - const variables fail tests until browser refresh [beta] D3 - const variables fail tests until browser refresh Nov 29, 2017
@raisedadead raisedadead removed scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. help wanted Open for all. You do not need permission to work on these. labels Dec 6, 2017
@raisedadead
Copy link
Member

Duplicate of #16087

@raisedadead raisedadead marked this as a duplicate of #16087 Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants