Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Mindaugas vaskevicius](https://uploads.teamtreehouse.com/production/profile-photos/7710622/micro_12038443_860298504068383_2344252771259404684_n.jpg)
Mindaugas vaskevicius
211 Pointsi need help with this quiz
I don't get what to put in the fill the blanks question
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,867 PointsThere's more than one "blanks" question in this quiz.
3 Answers
![Kajuanna Smith](https://secure.gravatar.com/avatar/41ae8ed412351f204f65d6982428a2a6?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Kajuanna Smith
Full Stack JavaScript Techdegree Graduate 13,609 Points+=
![Indiya Gooch](https://secure.gravatar.com/avatar/75a9f70f1140dfab9e5267a707f0fdf1?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Indiya Gooch
12,075 PointsConsider the following code:
let greeting = 'Hi';
greeting = greeting + ', Treehouse students!';
Complete this code by adding the operator that produces the same result as the above code:
let greeting = 'Hi';
greeting **+=** ', Treehouse students!';
Reason:The addition assignment operator adds the value of the right operand (the stuff on the right side of the =) to a variable and assigns the result to the variable.
Complete the code below to create a template literal:
const headline = **` **<h1>A Literal Headline</h1> **` **;
Consider the following code:
const name = "Aneesah";
let message = "Hello " + name + ". How are you?";
Complete the code below to recreate the above code using template literal interpolation:
const name = "Aneesah";
let message = ** `Hello ${name}. How are you?` **;
Reason: Template literals are enclosed by the backtick () (grave accent) character instead of double or single quotes.
Template literals can contain placeholders - indicated by the dollar sign and curly braces (${expression}). The expressions in the placeholders and the text between the backticks (
) get passed to a function.
The default function just concatenates the parts into a single string.
Link: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
![treehouser9](https://uploads.teamtreehouse.com/production/profile-photos/11576241/micro_Screen_Shot_2020-12-31_at_1.38.32_PM.jpg)
treehouser9
824 Points+= and += didn't work. What's the correct stuff to put in the blank space? Here's the Quiz Question again:
Consider the following code:
let greeting = 'Hi'; greeting = greeting + ', Treehouse students!'; Complete this code by adding the operator that produces the same result as the above code:
let greeting = 'Hi'; greeting ', Treehouse students!'; <----fill in blank space after greeting
Jose Jaimes
152 PointsJose Jaimes
152 PointsWhat is the question?