Add labels to scatter plot circles, wont let me pass

So using a text editor and chrome dev tools ive checked that my answer to this problem is returning the correct coordinates and numbers, but the test still fails me. Not the first time this has happened. Any suggestions? Here’s the code

const dataset = [
[34, 78],
[109, 280],
[310, 120],
[79, 411],
[420, 220],
[233, 145],
[333, 96],
[222, 333],
[78, 320],
[21, 123]
];

const w = 500;
const h = 500;

const svg = d3.select(“body”)
.append(“svg”)
.attr(“width”, w)
.attr(“height”, h);

svg.selectAll(“circle”)
.data(dataset)
.enter()
.append(“circle”)
.attr(“cx”, (d, i) => d[0])
.attr(“cy”, (d, i) => h - d[1])
.attr(“r”, 5);

svg.selectAll(“text”)
.data(dataset)
.enter()
.append(“text”)
// My solution
.text((d) => { return d })
.attr(‘x’, (d) => { return d[0] + 5 })
.attr(‘y’, (d) => { return h - d[1] })

There needs to be a comma between texts.

Give it a try.

Here is the solution.

.text((d) => (d[0] + ", " + d[1]))

Thanks! I suspected a format issue. I wish the tests were a little bit less sensitive to irrelevant details…but it’s free so I guess I can’t complain to much.