JavaScript JavaScript Basics Working with Strings Combine Strings and Template Literals Review

ROBERT BUTLER
ROBERT BUTLER
2,008 Points

const headline = __<h1>A Literal Headline</h1>__;

const headline =__ <h1>A Literal Headline</h1>;__

2 Answers

ROBERT BUTLER
ROBERT BUTLER
2,008 Points

const headline = <h1>A Literal Headline</h1>;

Maybe { }

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, ROBERT BUTLER! The key to this question is that it is asking for a JavaScript template literal. Every template literal, even if it doesn't contain any variables starts and ends with a backtick.

In this case, hello world is a normal string.

hello = "Hello World!";

But in this case, it is a template literal:

hello = `Hello World!`;

Hope this helps! :sparkles: