only the fallback, not the sum.
you add only the fallback into the parenthesis, and then add +1 outside when the value is determined
not required for the step, but important info:
if you have this, and the value is undefined you have undefined +1 || 0 which collapses to 0, when you want instead to have 1 as first value when counting a product
const totalCountPerProduct = {};
this.items.forEach((dessert) => {
totalCountPerProduct[dessert.id] = (totalCountPerProduct[dessert.id]) + 1 || 0;
Is this the syntax you mean?