--- id: 587d7fa6367417b2b2512bc2 title: Add Document Elements with D3 required: - src: 'https://cdnjs.cloudflare.com/ajax/libs/d3/4.3.0/d3.min.js' challengeType: 6 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert($("body").children("h1").length == 1, "The body should have one h1 element.");' - text: '' testString: 'assert($("h1").text() == "Learning D3", "The h1 element should have the text "Learning D3" in it.");' - text: '' testString: 'assert(code.match(/d3/g), "Your code should access the d3 object.");' - text: يجب أن تستخدم شفرتك طريقة select . testString: 'assert(code.match(/\.select/g), "Your code should use the select method.");' - text: يجب أن تستخدم التعليمات البرمجية الخاصة بك أسلوب append . testString: 'assert(code.match(/\.append/g), "Your code should use the append method.");' - text: يجب أن تستخدم الشفرة طريقة text . testString: 'assert(code.match(/\.text/g), "Your code should use the text method.");' ```
## Challenge Seed
```html ```
## Solution
```js // solution required ```