Put in order · Vibe coding with Claude Code course · Module 8: Slack clone
Sorting: Height of a bar
Arrange on one line the return from barPercent that gives 0 when there were no messages in the whole period:
Items to put in order
- max === 0
- : (count / max) * 100;
- return
- ? 0
You can check the correct answer by solving this task in the CodeWorlds game.