Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


8,299 Points

My brain is going to pop!

Hi all!

I’m on the Front-End developer track and AJAX is used with jQuery but I don’t want to use jQuery for my AjAX requests? And treehouse have no other resources to learn.. I tried to look at fetch but I’m having a really hard time understanding promises.

What can I do? Ale8k.

1 Answer

Brendan Whiting
.a{fill-rule:evenodd;}techdegree seal-36
Brendan Whiting
Front End Web Development Techdegree Graduate 84,696 Points

I think it's pretty helpful to try building your own Promise from scratch. There are a few tutorials out there to do that, but this one I think is good: https://levelup.gitconnected.com/understand-javascript-promises-by-building-a-promise-from-scratch-84c0fd855720

In order to follow along with this, an important prerequisite is understanding that functions are objects and you can pass functions as arguments. This is something you've probably done a bit by passing in callbacks.

JQuery is a bit dated but it's still out there. It's not a terrible thing to learn. You can also go the the Library, look at all the JavaScript courses and pick off a few that might help you understand what's going on. There's a course on callbacks, courses on ES6 and arrow functions, a course on closures, a workshop on fetch, a workshop on promises.