Learn Asynchronous Programming by Building an fCC Forum Leaderboard - Step 40

Tell us what’s happening:

I don’t understand why I cannot pass. I tried many things

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

const linkClass = `${selectedCategory.className + category}`;

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn Asynchronous Programming by Building an fCC Forum Leaderboard - Step 40

Can you share the many things you tried? Can you say what specifically about the problem has you stuck?

const linkClass = ‘${selectedCategory.className} + category’;

Yes, that is code. Can you answer my questions though?

I added the value of category to ${selectedCategory.className} inside template literal. But I can’t pass.

const linkClass = ‘${selectedCategory.className} + ${category}’;

What about the problem or error is confusing? (I know you can’t pass, that doesn’t help me understand what you don’t understand though)

I added the value of category to ${selectedCategory.className}

Ok, without you saying anything other than your code I can’t really help

Ok, I will ask others

You could try talking about how you are stuck?

hi there!
read the instructions carefully.
the instruction for the step is:
Create a constant called linkClass and assign it a template literal. Inside that template literal, add the value of category ${selectedCategory.className} .
reset your code and try again.
hint:its a simple copy paste challenge.

1 Like

thank you, I solved it.

1 Like

I recommend attempting to explain what difficulties you are having in the future. Talking about technical problems with other people is a critical skill if you want a programming job.