JavaScript Getting Started With ES2015 Using Template Literals Review Template Literals

Please help!

const name = "Dave"; let message = "Hello " + name + ". How are you?";

And fill in the blanks below to recreate it using template literal interpolation:

const name = "Dave"; let message = Hello _. How are you?

I have tried let message = Hello ${name}. How are you?;

1 Answer

David Deberry
David Deberry
5,447 Points

I just tried it and I added a backtick before and after the sentence and it worked.

let message = `Hello ${name}. How are you?`