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!

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


Joseph Quintiliano
Joseph Quintiliano
Front End Web Development Techdegree Student 10,511 Points

Why dont we wrap the parameter, elementName, in single quotes so we dont have to remember to include them later

for const element = document.createElement();

Would surrounding the template literal of elementName with single quotes, to then follow up with surrounding the single quotes with back ticks...would this be considered good practice when coding?

1 Answer

Steven Parker
Steven Parker
224,872 Points

The example above doesn't show any template literals, but template literals must always be enclosed in back ticks. Single or double quote characters are fine for normal strings, but the system won't recognize them as template literals.