The question is:
Create a function called myChildren that takes one parameter: a child's name.
When passed in ‘Dave’ return ‘Oldest’
When passed in ‘Michelle’ return ‘Middle’
When given any other value return ‘Not my kid!”
I feel like I have tried every single way possible and I can't figure it out! Please someone help me.
Aucun commentaire:
Enregistrer un commentaire