Tutorialspoint

#May Motivation Use code MAY10 for extra 10% off

Asynchronous JavaScript

person icon Daniel Stern

4

Asynchronous JavaScript

Save time by executing code over time. Doesn't take a long time!

updated on icon Updated on May, 2024

language icon Language - English

person icon Daniel Stern

English [CC]

category icon Development,Web Development,Javascript

Lectures -19

Resources -1

Duration -1 hours

4

price-loader

30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.

Course Description

It's hard to imagine a website that never sends any messages to analytics, 3rd party APIs, or to databases where important information like user profile information and chat history are held.

Consider the following scenario:

You are the in-house developer at W&W Window Washers.

The owner’s eccentric son, Malachi Window, appears at your desk one afternoon in a flush.

“We’ve signed up with a new payment platform, one that will be less inclined to pry into our… affairs.” He says.

“Right,” you agree, with some hesitation.

“You need to update our website to go through that vendor. Send the client’s payment information to the vendor, and when the vendor’s API sends a message back, send the order to our supplier,” explains Malachi.

You fire up your computer and get to work, but
there’s a problem.

JavaScript code executes all at once. There is no wait keyword in JavaScript that pauses before the next line of code. So how can we know if the payment information is approved by the vendor before sending a message to the supplier?

Did you know that none of these things can be accessed in JavaScript without Asynchronous Code?

In this course, we'll cover the 5 primary tools all developers need to write asynchronous JavaScript:

  • setTimeout

  • setInterval

  • Promise

  • async / await

  • Generator Functions

By the end of this course, you should feel comfortable using all these tools in projects, and you should be able to decide which tool makes the most sense for any given project.

Goals

What will you learn in this course:

  • Delay code execution with setTimeout
  • Repeatedly perform tasks with SetInterval
  • Wrap asynchronous code in Promises
  • Understand and Use Async / Await
  • Understand and Use Generators

Prerequisites

What are the prerequisites for this course?

  • Beginner-Level JavaScript
Asynchronous JavaScript

Curriculum

Check out the detailed breakdown of what’s inside the course

Introduction to Asynchronous JavaScript
6 Lectures
  • play icon Downloadable Resource
  • play icon An Async Javascript Scenario 02:27 02:27
  • play icon Defining Asynchronous / What is Synchronous code? 04:08 04:08
  • play icon WORKSHOP -Exploring Synchronicity in JavaScript 09:00 09:00
  • play icon All About Asynchronous Code 05:38 05:38
  • play icon Course Roadmap 00:38 00:38
SetTimeout and setInterval
5 Lectures
Tutorialspoint
Async / Await
5 Lectures
Tutorialspoint
Generator Functions
3 Lectures
Tutorialspoint

Instructor Details

Daniel Stern

Daniel Stern

e


Course Certificate

Use your certificate to make a career change or to advance in your current career.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
Annual Membership

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
Online Certifications

Talk to us

1800-202-0515