What will be the return value of this if/else statement?
if/else
if (salary <= 3000) { return discount < 0.40 } else { return discount < 0.60 }
I'm not sure if the return value of each if and else will be a boolean or 0.40 and 0.60?
if
else
boolean
0.40
0.60
Aucun commentaire:
Enregistrer un commentaire