TypeScript · easy
Growth wanted "free shipping over $50". What shipped is free shipping under $50. Carts at $12 sail free; carts at $80 get charged. Support is already writing the apology email. Flip the gate.
Free shipping starts at $50 inclusive (amounts are cents). Just under the threshold must pay shipping; the threshold and above must qualify. qualifiesForFreeShipping(4999) → false; qualifiesForFreeShipping(5000) → true.
workspace/
└── src/
└── shipping.ts (threshold is upside down)With sharpen installed, this command opens exactly this challenge in your local arena:
sharpen 17
First time? The full install is right below.
npm install -g @juanwmedia/sharpen sharpen 17 npx @juanwmedia/sharpen 17 sharpen update