What is your hint or solution suggestion?
Since the .attr method takes two parameters which is the ('attributeToBeAdded', 'attributeName')
, to add a class of bar you’ll simply
use .attr('class ', 'bar')
Challenge: Add Classes with D3
Link to the challenge: