---
id: 587d7fa7367417b2b2512bc8
title: Add Classes 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($("div").attr("class") == "bar", "Your div
elements should have a class of bar
.");'
- text: ''
testString: 'assert(code.match(/\.attr/g), "Your code should use the attr()
method.");'
```
## Challenge Seed
## Solution
```js
// solution required
```