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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *