What are the best Javascript callback alternatives?

asked by Anonymous
12 contributors
3 solutions
  1. 6

    #1Promises

    Promises
    Promises are used as a proxy for a value that isn't known at the time it's created. While in callback functions your code executes in a nested callback, Promises provide an alternative approach that allows you to access asynchronous method return values with synchronous methods.
    Websites

    Free

    Gregory Peters
    Written on August 13, 2017
    "I gave this a try and programming within my business went much more smoothly. This is not for a beginner. I have good IT people so they were easily able to figure this out. If ou are not in that scenario, I would approach this with caution. Besides that, I recommend to anyone. "
  2. 2

    #2Async.js

    Async.js
    Async is a library of utilities which provides straight-forward, powerful functions for working with asynchronous JavaScript.
    Websites

    Free

    Pablo Guzmán
    Written on September 13, 2017
    "I'm a new software developer just starting to get my footing in JavaScript. I can see the great advantage of Async.js as a library of utilities, and I anticipate using it more as time goes on. But I wish there were more explicit instructions and pointers for the beginner like myself."
  3. 1

    #3Iterators and Generators (JavaScript)

    Iterators and Generators (JavaScript)
    An iterator is an object that is used to traverse a container object like a list. In JavaScript, an iterator object is not a distinct built-in object, but is an object that implements a next method to access the next item in the container object.
    Websites

    Free

    Andrea Delgado
    Written on September 13, 2017
    "This solution provides me javascript options for iterators and generators which from the description on the website dont seem to define themselves as callbacks. I'm not entirely sure if these would even be considered callback alternatives as its not mentioned anywhere and doesn't compare or list any other alternatives. I'm not knowledgeable enough about javascript to know if this page is even going to be helpful to me. "

Summary

Best What are the best Javascript callback alternatives
RankSolutionsTypeVotesPrice
1PromisesWebsites 6 Free
2Async.jsWebsites 2 Free
3Iterators and Generators (JavaScript)Websites 1 Free
Close

This action requires you to be logged in

Quickly sign in with your social media account:

What interests you most? (Select at least 3)

This will help us to keep things fresh and relevant!

Close

Now that you’ve found a solution...

Why not join our community of sharp minds and pro-active posters?

Be part of a rewarding interactive knowledge exchange!
Close

Join These Inquisitive Minds

Engage, learn and share with a friendly community versed in a massive range of trending topics.