I have a ternary function
const resetCompletion = completed < 0 ? 0 : completed > 100 ? 100 : completed;
I need to convert it into a simple function of if else if else block. What should be the proper way?
if else if else
Aucun commentaire:
Enregistrer un commentaire