Build an fCC Forum Leaderboard - Build an fCC Forum Leaderboard

Tell us what’s happening:

Step 18 – Object property missing from challenge instructions

Hi everyone,
In step 18 of the challenge “fCC Forum Leaderboard”, the instructions say to pass a property ‘allCategories.200’ from the provided object ‘allCategories’ to a function ‘forumCategory()’.
However, this property doesn’t exist in the given object.
Even after manually adding it, the test doesn’t pass.

Here’s my code (automatically included below).

Is this a known issue, or am I misunderstanding the step?

Your code so far

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

/* file: styles.css */

/* file: script.js */

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

Challenge Information:

Build an fCC Forum Leaderboard - Build an fCC Forum Leaderboard

Reread instruction number 7.

Thanks it’s working now:

const forumCategory = (categoryId) => {

if (!Object.hasOwn(allCategories, categoryId)) {

return `General`;

}

const { category, className } = allCategories[categoryId];

return `${category}`;

};

1 Like