i
Cashify
Filter interviews by
Bubbling is the process in which an event propagates from the innermost element to the outermost element in the DOM tree.
Events in JavaScript propagate in two ways: bubbling and capturing.
Bubbling is the default propagation mode in which an event is first captured by the innermost element and then propagated to the outermost element.
Bubbling can be stopped using the stopPropagation() method.
Example: Clicking on a butto...
Capturing in ES refers to the process of binding a value to a variable in a closure.
Capturing allows a function to access variables outside of its own scope.
This is achieved by creating a closure that contains the variable and its value.
Captured variables can be modified by the function, but the original value remains unchanged.
Example: const x = 5; function foo() { console.log(x); } foo(); // Output: 5
Example: functio...
Page development in 2 hrs
Top trending discussions
Store Manager
85
salaries
| ₹2.8 L/yr - ₹5.2 L/yr |
Assistant Manager
70
salaries
| ₹3.2 L/yr - ₹8 L/yr |
Area Sales Manager
57
salaries
| ₹4 L/yr - ₹9.4 L/yr |
Brand Promoter
43
salaries
| ₹1.9 L/yr - ₹3.2 L/yr |
Deputy Manager
40
salaries
| ₹2 L/yr - ₹8.5 L/yr |
Yaantra
Karma Recycling
GreenDust
Quikr