This question already has an answer here:
Can i use multiple if and then after an else like this ?
if
else
if(sky == 'blue') { ... } if(sky == 'red') { ... } else { alert('Sky is not blue or red'); }
When do I need else if ?
else if
Thanks.
Aucun commentaire:
Enregistrer un commentaire