We have a template string:
`The character is ${C}`
And we need to pass C
to it such that we can create string like:
The character is Q
Approach
export function characterTemplate(C:string) {
return `The character is ${C}`
}
We have a template string:
`The character is ${C}`
And we need to pass C
to it such that we can create string like:
The character is Q
export function characterTemplate(C:string) {
return `The character is ${C}`
}