JavaScript AJAX Basics (retiring) AJAX and APIs Review jQuery: Part 2

Marvin Benno
Marvin Benno
7,524 Points

Is 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
KRIS NIKOLAISEN
54,333 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.