Step 42 learn asynchronous programming an fcc forum leaderboard

I don’t understand what is happening the code refused to pass, I tried it with and without template literals it didn’t work, it keeps telling me " You should set the value of the

class

attribute to the constant named

linkClass

. You should have a

target

attribute after the

class

attribute. You should use place the

linkText

constant in between the anchor tags. // tests completed",

return `<a href="${url}" class="linkClass" target="_blank" >${linkText}</a>`;

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

linkClass is a variable, you should use it like you are using the other variables in the template string.

someAttribute="${someVariable}"
1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.