Question · Vibe coding with Claude Code course · Module 11: Spotify clone
Dummy date in the Added column
An agent put {new Date().toLocaleDateString()} in the Added column. What will you see?
Answer options
- The added date of each track, only in the browser's format
- A TypeScript error, because new Date() does not return a string
- An empty column, because toLocaleDateString needs a time zone
- Today's date in every row, and in development mode a hydration error when the server and the browser format it differently
You can check the correct answer by solving this task in the CodeWorlds game.