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 trialale8k
8,299 PointsMy 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
Front End Web Development Techdegree Graduate 84,738 PointsI 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.