Which of the following is a push-based mechanism in JavaScript?
- Callbacks
- Observables
- Promises
- Synchronous functions
Observables are a push-based mechanism in JavaScript. They allow you to work with asynchronous data streams, where data can be emitted at any time, rather than being pulled when needed as with Promises or using callbacks.
Loading...
Related Quiz
- For a form control that has both synchronous and asynchronous validators, how does Angular handle validation?
- What is the purpose of an HttpInterceptor in Angular?
- Imagine you're building a dashboard application where widgets can be added/removed by users. Which feature of Angular would be most suitable to achieve this dynamic behavior?
- What is the primary purpose of the RouterOutlet directive in Angular?
- You are working on an autocomplete feature. As a user types into a search box, you want to delay the API call until the user has stopped typing for a specific duration. Which RxJS operator would you utilize?