Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

JavaScript promises

Hi all,

I wrote a short blog post about promises in JavaScript. Hopefully someone may find it useful.

http://www.caseyy.org/keeping-your-promises-some-practical-tips-for-javascripters/

I am going to try to do more of this, and would really appreciate feedback on style, writing etc.. if you've got time.

Thanks!

1 Answer

Steven Parker
Steven Parker
243,318 Points

Nice looking and quite readable :+1:

You might want to add a few more examples and explanations early on, like where you first mention Promise, you say "To this you pass a function with two parameters" but that's not what is shown in the example.

Then where you introduce .catch() you mention that it "works just like .then." but there was not any explanation of what .then() is or how it is used prior to that (it had appeared in an example but without any comment).

So overall, excellent form, and a few opportunities to improve on content.

Thanks so much for reading and your comments! I really appreciate it.