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;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What property prevents the event flow from bubbling up to its parent elements?

A

cancelBubble();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What property prevents the propagation of the same element from being called?

A

stopPropagation();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly