You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
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
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
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
Your Code
Screenshot
The text was updated successfully, but these errors were encountered: