If statement to compare if lastName starts with letters A-L
function checkFirstLetterOfLastName() {
if(lastname.startsWith (A-L)) {
message.textContent `enter code here`= 'Go stand in first line.';
} else message.textContent = 'Go stand in second line.'
}
Aucun commentaire:
Enregistrer un commentaire