Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 55632b4

Browse files
Questions-Answers-61-62
1 parent 6e021d2 commit 55632b4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
| 58 | [What are the different ways to convert a string to an integer](#58-what-are-the-different-ways-to-convert-a-string-to-an-integer) |
6666
| 59 | [How to find the operating system in the client machine using JavaScript](#59-how-to-find-the-operating-system-in-the-client-machine-using-javascript) |
6767
| 60 | [Name some JavaScript frameworks and libraries](#60-name-some-javascript-frameworks-and-libraries) |
68+
| 61 | [What is event bubbling and event capturing](#61-what-is-event-bubbling-and-event-capturing) |
69+
| 62 | [What is the role of event.stopPropagation()](#62-what-is-the-role-of-eventstoppropagation) |
6870

6971
### 1. What is JavaScript
7072
* JavaScript is a scripting language used to create dynamic and interactive websites. It is supported by all major web browsers.
@@ -937,17 +939,36 @@ console.log(+"10"); // output ========> 10
937939
Number("10"); // output ========> 10
938940
Number("abc"); // output ========> NaN
939941
```
942+
**[:top: Scroll to Top](#javascript-interview-questions)**
940943
941944
### 59. How to find the operating system in the client machine using JavaScript
942945
We can use the **navigator.platform** property to find out the operating system of the client machine
943946
```js
944947
console.log(navigator.platform); // output ========> 'Linux x86_64'
945948
```
949+
**[:top: Scroll to Top](#javascript-interview-questions)**
946950
947951
### 60. Name some JavaScript frameworks and libraries
948952
**Frameworks** - Angular, Ember.js, Vue.js, Meteor, Next.js
953+
949954
**Libraries** - React, Backbone.js
950955
956+
**[:top: Scroll to Top](#javascript-interview-questions)**
957+
958+
### 61. What is event bubbling and event capturing
959+
Event bubbling and Event Capturing are two different mechanisms used for handling event propagation in the HTML DOM API. When an event is triggered on an element which is inside another element, and both elements have an event listener attached to them , the event propagation mode determines the order in which the elements receive the event.
960+
961+
**Event Bubbling** - The event is first triggered on the innermost element and then propagated/bubbles up to its parent elements and eventually to the outermost element in the DOM hierarchy.
962+
963+
**Event Capturing** - The event is first triggered on the outermost element and then propagated/bubbles down to its child elements and eventually to the innermost element in the DOM hierarchy.
964+
965+
**[:top: Scroll to Top](#javascript-interview-questions)**
966+
967+
### 62. What is the role of event.stopPropagation()
968+
This method is used to stop the event from propagating up or down the DOM hierarchy.
969+
970+
**[:top: Scroll to Top](#javascript-interview-questions)**
971+
951972
## Output Based Questions
952973
953974
**1. What will be the output**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /