Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Asynchronous Code in Express!
You have completed Asynchronous Code in Express!
Preview
An introduction to asynchronous programming in Express.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
[MUSIC]
0:00
Hey, I'm Treasure, web developer and
teacher here at Treehouse.
0:00
Writing asynchronous code
in Express often involves
0:04
acting upon data whenever
you happen to receive it.
0:07
For example, say I want to retrieve
a list of movies from a database and
0:10
render that movie data into a template.
0:14
Because of the asynchronous nature of
working with the database, there's no
0:17
guarantee I'll get that movie information
back before Express renders the template.
0:21
The result, an empty HTML
template sent to the browser.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up