what have you tried? it seems you just used a text method. What about the where and what should be written in there?
You can look at how the rect elements were added above. It is not exactly the same as you are creating text nodes now, but it is mostly similar.
Below the instructions as a refresher
The code in the editor already binds the data to each new text element. First, append text nodes to the svg . Next, add attributes for the x and y coordinates. They should be calculated the same way as the rect ones, except the y value for the text should make the label sit 3 units higher than the bar. Finally, use the D3 text() method to set the label equal to the data point value.