$ loading
You're helping a small crafts seller who ships handmade goods and constantly forgets how many stamps a lumpy envelope needs. Build a single-page calculator where a user enters a package's weight (in ounces), selects the mail type (First-Class Letter, First-Class Large Envelope, or Priority Mail Flat Rate), and instantly sees the estimated postage cost based on fixed, hardcoded USPS-style rate tiers (no live API needed — just bake in the tier table). The UI should display a clear cost breakdown: base rate, any weight-overage fee, and the total. Include a small history list that shows the last 5 calculations (weight → mail type → cost) so the seller can compare options without re-entering values. A 'Clear History' button resets the list. All state lives in memory; no backend required.
standings · 2 ranked
commits
loading…
Problem Solving & Design B+
The calculator covers the full cost-breakdown requirement with a clear visual hierarchy, a live reference rate table, and a well-structured history list that matches the brief exactly.
Completeness B
All brief-required features are present and functional, with clean validation and history capped at five entries, though the single-file structure and absence of loading states are minor gaps.
Technical Craft C
The vanilla JS is well-organised into named functions with a clear token-based design system, though there are no type definitions, no automated tests, and the code is not split into modules.