Debugging with Console & DevTools

Which debugging technique would best help test all discount code paths quickly?
function calculateDiscount(price, discountCode) {
  let discount = 0;
  
  if (discountCode === 'SUMMER20') {
    discount = 0.2;
  } else if (discountCode === 'SALE15') {
    discount = 0.15;
  } else if (discountCode === 'MEMBER10') {
    discount = 0.1;
  } else {
    discount = 0;
  }
  
  return price - (price * discount);
}
Next Question (31/40)