Quiz
Ultimate Review
Questions in this quiz (5)
1Hovering over the answer to this question is a DOM event.
- ATrue
- BFalse
2Why is it useful to be able to pass one function into another?
- AThis allows you to have more control over when and how a function gets executed.
- BThis allows you an alternative to removeElement when removing an element from the DOM.
- CPassing one function into another is the only way to log messages to the console.
- DPassing in other data types like strings make a function less efficient overall.
3Why are events useful?
- ABecause we can tie behavior to them.
- BBecause they keep a webpage static.
- CBecause they keep us from having to write for loops.
4Why are functions called "first-class citizens" in JavaScript?
- ABecause they can be stored in variables or passed into functions like any other datatype.
- BBecause they were created in a previous language before being brought into JavaScript.
- CBecause they must be used as rarely as possible to keep from polluting the global scope.
5You can set a listener for an event you want to handle on a sibling of the parent of your target element, because of event delegation.
- ATrue
- BFalse
Information
- Description
- Quiz on Ultimate Review, created by Scot Pfleghaar on 03/08/2017.
- Author
- Scot Pfleghaar
- Language
- English
- Views
- 0
- Rating
- No ratings yet Rate this quiz