Question · Vibe coding with Claude Code course · Module 12: Medium clone
Reading time of an empty chronicle
The agent counts words as text.split(" ").length and divides by 200 with Math.ceil. What will a new, empty article show?
Answer options
- 1 min read, because "".split(" ") gives an array with one empty string, and Math.ceil(1 / 200) is 1
- 0 min read, because an empty string has no words
- A TypeScript error, because split does not work on an empty string
- NaN min read, because you cannot divide an empty text
You can check the correct answer by solving this task in the CodeWorlds game.