I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
There are two problems with the grouping symbols. One, there is an opening brace (’{’) missing after your arrow. Two, the right parenthesis after h - 3 * d closes the call to .attr(), leaving the }) unmatched.
When I paste your code into the challenge, the console reads