Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Data Relationships with SQL and Sequelize Understand Data Relationships Data Relationships

Why is this shown as mid-level difficulty, but the *prerequisites* include the last two (most difficult) JS courses?

When you sort JavaScript courses in the library by difficulty, this course is in the middle of the page. Two of the prerequisite courses are literally the most difficult ones at the end.

3 Answers

The prerequisite course isn't necessarily the most difficult course; the prerequisite course and the course this post is about have the same difficulty level; it's just that the prerequisite course comes last alphabetically for Intermediate level JavaScript courses.

I don't know what the other prerequisite course is because I've probably already taken it.

This is the only JavaScript course that has the highest difficulty level (Advanced): https://teamtreehouse.com/library/user-authentication-with-express-and-mongo

Joseph, when you search the courses, there is a sort by "difficulty" (in addition to newest, oldest, and alphabetical.) If the sort by difficulty is just another alphabetic sort, why is it even there at all?

If you select sort by 'Difficulty,' it will first sort by difficulty, then with those with the same difficulty level, e.g. 'Beginner,' it will sort alphabetically. Here's an example

(Sort by Difficulty)
Course ABC, Difficulty: Beginner
Course DEF, Difficulty: Beginner
Course BCD, Difficulty: Intermediate
Course CDE, Difficulty: Intermediate

Notice both Course BCD and Course CDE come after Course DEF even though they both come before it alphabetically. That's because both of those courses come after Course DEF in difficulty (Intermediate vs. Beginner). Now notice that the courses are sorted alphabetically within the same difficulty level. Hope that helps.

There's also advanced difficulty; I didn't include it in my example since it wasn't necessary.

Right, there aren't any in the return of JavaScript courses.

I see what you mean. I didn't notice that all the courses have a difficulty tag - apparently there is only beginner or intermediate. I assumed it was a bit more structured than that.