vendredi 9 juillet 2021

How can i write these if statements as a single nested switch

I am trying to write this if statement here as a switch statement

if (value < 2500) {
  paystackFees = value * 0.015;
};
if (paystackFees > 2000) {
  paystackFees = 2000
};

Aucun commentaire:

Enregistrer un commentaire