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

JavaScript

Ken Ho
Ken Ho
3,826 Points

Qjuery > In the app.js file, on line 7, append a button with the text of 'Reveal Spoiler!'

Hi,

Would need some clarification for the item below.

Was wondering why there is no ' ' between reveal spoiler!

$(".spoiler").append ("<button>'Reveal Spoiler!'</button>");

Steve Linn
Steve Linn
11,841 Points

You already have it selected on the outer elements -outside the button. So you don't need it inside the button element...well unless you want the test to have single quotes around it

2 Answers

Steven Parker
Steven Parker
229,744 Points

The quotes just show you the text to use.

You're not supposed to copy them into the code:

$(".spoiler").append ("<button>Reveal Spoiler!</button>");
Ken Ho
Ken Ho
3,826 Points

I though we need to define the string for the word reveal spoiler? Or the " " included the <buttons> bracket is somehow sufficient.