Hello there.
I’m trying to do the “Build a Mathbot” workshop right now and for some reason i can’t get past Step 1. As of now, my code looks like that:
const botName = "MathBot";
const greeting = "Hi there! My name is ${botName} and I am here to teach you about the Math object!";
console.log(greeting);
I get the following message when I try to submit it:
You should assign the following sentence to the
greetingvariable:"Hi there! My name is [MathBot goes here] and I am here to teach you about the Math object!". Make sure to replace[MathBot goes here]with thebotNamevariable.
What am I missing here? Thank you for your help!
Edit: I managed to get it right with string concatenation and it changes the code to:
const botName = “MathBot”;
const greeting = `Hi there! My name is ${botName} and I am here to teach you about the Math object!`;
console.log(greeting);
Am I wrong to assume that template literals should work in double quotes? Thanks!