Question · Vibe coding with Claude Code course · Module 5: Reddit clone
Quiz: Counting comments
How does the countTotalComments function count all comments including replies?
Answer options
- It counts only top-level comments
- It always returns 0
- Recursively: 1 + countTotalComments(replies) for each comment
- It counts only upvotes
You can check the correct answer by solving this task in the CodeWorlds game.