Week of July 30 2018 Flashcards
1
Q
Explain event propagation in the DOM and how to prevent it.
A
An event bubbling up from an element to its containing elements (child to parent and all the up to the top).
Usually when a child element is clicked its parentElements event handler (if existing) will also fire. If you use evt.stopPropagation() the parents event handler will not fire, the event does not bubble up.
2
Q
2 Websites to look up if a method is available accross browsers.
A
html5please. com
caniuse. com
3
Q
Explain ArrayBuffer?
A
general container for binary data
object
generic
fixed-length raw binary data buffer