Add Document Elements with D3

Add Document Elements with D3
0.0 0

#1

Tell us what’s happening:

please can someone help me am totaly lost here i dont understand why i keep getting unexpected token

Your code so far


<body>
  <script>
    // Add your code below this line
 <h1>
.select("h1");
.append("h1");
.text("Learning D3");
  </h1>  
    // Add your code above this line
  </script>
</body>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/data-visualization/data-visualization-with-d3/add-document-elements-with-d3


#2

Your <h1> tag should be inside the <body> tags before the JavaScript. And you also need to access the d3 object to use its’ methods.