jeudi 29 septembre 2016

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.'
}

I need help with this code.

Aucun commentaire:

Enregistrer un commentaire