Javascript-events-1 Flashcards
1
Q
What is the difference between the getElementById() method and the querySelector() method?
A
get is only for id’s, selector isfor anything
2
Q
Who passes in the event object into the handleClick callback function?
A
Javascript, the event, like “click”.
3
Q
Does a callback function require a name?
A
no, anonymous (anonymous is rare)