const name = 'Dave'
const position = '10th'
const number = 5
function getMessage(literals, name, position, number){
console.log(literals)
console.log(name)
console.log(position)
console.log(number)
return literals[0] + name + literals[1] + position + literals[2] + number + literals[3]
}
const message = getMessage`Hello ${name}, you are ${position} in queue ${number}.`
console.log(message)
---
// ['Hello ', ', you are ', 'in queue ', '.']
// Dave
// 10th
// 5
// Hello Dave, you are 10th in queue 5.