What is included in macro-tasks in the Event Loop?
Frontend
6413
681
Middle+
76
When does requestAnimationFrame execute in relation to the Event Loop and rendering?
Middle+
62
const user = { age: 18, filterAges: function(ages) { return ages.filter(function(age) { return age === this.age; }); } } console.log(user.filterAges([11, 15, 17, 18])) Explain why the code above does not return the expected result and how to fix it.
Middle+
60
console.log(1); Promise.resolve(2).then((value) => console.log(value)) setTimeout(() => console.log(3)) console.log(4);
Middle+
56
Have you ever optimized interface rendering? What approaches did you use, such as virtual scroll, lazy loading, or defer?
Middle+
52
How do ChangeDetectorRef.markForCheck() and detectChanges() differ? How do they propagate the check through the component tree?
Middle+
51