TypeScript · easy
Friday tip-out. The jar UI shows "$100.00" for a hundred cents. Finance will not find that cute. formatTip forgot that money has a denominator. Fix the math before someone screenshots the dashboard for Slack.
Show tip amounts in dollars, not raw cents. formatTip(100) must return "$1.00"; formatTip(0) must return "$0.00".
workspace/
└── src/
└── tip.ts (formatTip is cooking the books)With sharpen installed, this command opens exactly this challenge in your local arena:
sharpen 16
First time? The full install is right below.
npm install -g @juanwmedia/sharpen sharpen 16 npx @juanwmedia/sharpen 16 sharpen update