Put in order · Vibe coding with Claude Code course · Module 13: Twitch clone
Order: appending a message
Arrange the line from the send function that appends a message and keeps the last 150 (one line):
Items to put in order
- )
- .slice(-MAX_MESSAGES)
- (prev) =>
- [...prev, message]
- setMessages(
You can check the correct answer by solving this task in the CodeWorlds game.