Implement program flow Flashcards
1
Q
What is the JavaScript switch case statement?
A
switch (expression) { case x: // codeblock; break; case y: // codeblock; break; default: // codeblock; }
2
Q
What property prevents the event flow from bubbling up to its parent elements?
A
cancelBubble();
3
Q
What property prevents the propagation of the same element from being called?
A
stopPropagation();