freeCodeCamp/curriculum/challenges/arabic/04-data-visualization/data-visualization-with-d3/select-a-group-of-elements-...

1.1 KiB

id title challengeType videoUrl localeTitle
587d7fa6367417b2b2512bc3 Select a Group of Elements with D3 6

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert($("li").text().match(/list item/g).length == 3, "There should be 3 <code>li</code> elements on the page, and the text in each one should say "list item". Capitalization and spacing should match exactly.");'
  - text: ''
    testString: 'assert(code.match(/d3/g), "Your code should access the <code>d3</code> object.");'
  - text: ''
    testString: 'assert(code.match(/\.selectAll/g), "Your code should use the <code>selectAll</code> method.");'

Challenge Seed

<body>
  <ul>
    <li>Example</li>
    <li>Example</li>
    <li>Example</li>
  </ul>
  <script>
    // Add your code below this line



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

Solution

// solution required