Sobes.tech

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.

60

console.log(1); Promise.resolve(2).then((value) => console.log(value)) setTimeout(() => console.log(3)) console.log(4);

56

Have you ever optimized interface rendering? What approaches did you use, such as virtual scroll, lazy loading, or defer?

52

How do ChangeDetectorRef.markForCheck() and detectChanges() differ? How do they propagate the check through the component tree?

51
/2