Learn how to deal with asynchronous stuff today, and in the near future.
- [Instructor] In this video we're going to look at…what various approaches to writing…asynchronous code look like.…So you will recognize the approaches in the wild.…We'll look at using call backs, promises,…and the new A-sync and await key words.…So here's some example code…that shows these three approaches.…The first one here uses the get method from the jQuery…job ascript library.…Which a function that takes the url as it's first perimeter,…and a call back function as it's second.…That call back gets the response from the server…in it's argument here, which you can then act on…in the body of this call back function.…
These urls are to httpbin.…A real website that provides an API for testing just…this sort of code.…This works fine for a single call,…but if there's another request that depends on the first one…and maybe more after that.…You get something that looks like this.…Where you end up having to nest all these call back…functions within one another.…And it gets to be a bit of a mess to write.…And it can get hard to understand if these functions…
- Using a text editor
- Declaring and assigning variables
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Promises, async, and await
Skill Level Beginner
1. Getting Started
2. Variables and Types
3. Objects, Arrays, and More
4. Operators and Control Structures
5. Iterating with Loops
7. More Advanced Pieces
Next steps3m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.