Select a Group of Elements with D3 2

Tell us what’s happening:

I am not sure what is the issue here? My code is ok as I understand it.

Your code so far


<body>
  <ul>
    <li>Example</li>
    <li>Example</li>
    <li>Example</li>
  </ul>
  <script>
    // Add your code below this line
    
  const anchors = d3.selectAll("li");
  .text("list item");

    // Add your code above this line
  </script>
</body>

Your browser information:

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

Link to the challenge:

There is a ; after the d3.selectAll(“li”) and that interrupts the chaining with .text(“list item”). Delete the ;