I have a string at the top of my script with a variable in it that isn't declared yet, but I want to keep the string at the top of the script to make it easier for other users to modify. Is there any way to do that? Example:
const greeting = `Hello, ${name}. How are you?`;
Then in a completely different part of the code where the above greeting
doesn't have name
access:
const name = 'Steve';
sendMessage(greeting);