Question · Vibe coding with Claude Code course · Module 5: Reddit clone
Quiz: The replies field in CommentNode
Why does CommentNode have a 'replies: CommentNode[]' field?
Answer options
- It is a TypeScript error that the compiler ignores
- So that every comment can have replies, and those replies their own replies (a tree)
- To store the number of votes of the comment
- Just for style, the field is not used
You can check the correct answer by solving this task in the CodeWorlds game.