>five fewer dollars in your pocket
>fifteen fewer dollars in your pocket
Definitely gave me a chuckle
>fifteen fewer dollars in your pocket
Definitely gave me a chuckle
Bespoke Plus is $5 and Pro is $15; there should be no check in the $5 line for Pro, OR if both lines are checked, the second line should be $10 and not $15.
As it is it means Pro is $5+$15=$20.
const originalDollars = 30;
const myDollars = originalDollars - 15;
const fiveDollarsLess = myDollars <= (originalDollars - 5);
const fifteenDollarsLess = myDollars <= (originalDollars - 15);
console.log(fifteenDollarsLess && fiveDollarsLess);
// truewhat you propose wouldn't make sense in my opinion, as its basically two consecutive boolean declaration
$5 less = pocket - paid <= pocket - 5
$15 less = pocket - paid <= pocket - 15The difference in interpretation comes from the nature of "features": are they actions or verifications? A verification is (usually) idempotent / has no consequence on the state of the world, but an action isn't.
I read the lines as "takes $x from your pocket".