You are viewing a single comment's thread. Return to all comments →
JavaScript
const bonAppetit = (bill, k, b) => console.log( (bill.reduce((acc, cur) => acc + cur) - bill[k]) / 2 === b ? "Bon Appetit" : bill[k] / 2 );
Seems like cookies are disabled on this browser, please enable them to open this website
Bill Division
You are viewing a single comment's thread. Return to all comments →
JavaScript