Question:
Why does this introducer function for person.name & person.shirt not work. It should output the actual name and shirt description instead of just ${person.name}
and ${person.name}
.
Repl link:
Hi, my name is ${person.name} and the color of my shirt is ${person.shirt}
const introducer = (name, shirt) => {
const person = {
name: name,
shirt: shirt
}
const intro = 'Hi, my name is ${person.name} and the color of my shirt is ${person.shirt}'
return intro
}
console.log(introducer('James', 'black'))