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 trialMarvin Benno
7,524 PointsIs this a bug in the quiz or am I doing something very wrong?
The question is ”fill in the missing code to add a clock event handler to all HTML button elements on a page:”
The code says this:
$(_).click(function() {
});
My answer was = $(’button’).click(function() {
});
What is wrong??
1 Answer
KRIS NIKOLAISEN
54,971 Points(1) ’button’
(2) 'button'
(3) "button"
I'm not sure what you used for quotes in (1) but (2) single quotes and (3) double quotes both passed. Note: (1) and (2) are not the same. It's easier to see with a larger font size.