From cceb37cd5365335e4705ac67a763e519128dc13a Mon Sep 17 00:00:00 2001 From: Mark Tyers Date: Fri, 12 Oct 2018 09:11:48 +0100 Subject: [PATCH] improved introduction --- 01 Lab 3 Async Code.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/01 Lab 3 Async Code.md b/01 Lab 3 Async Code.md index 3ebc78e..63df4b2 100644 --- a/01 Lab 3 Async Code.md +++ b/01 Lab 3 Async Code.md @@ -1,19 +1,16 @@ - # Asynchronous Code -This week’s lab tasks will focus on how JavaScript is used to asynchronously get and set data on remote servers, often referred to as AJAX calls. +This lab tasks will focus on how JavaScript is used to asynchronously get and set data on remote servers, often referred to as AJAX calls. It also covers a range of different ways to make asynchronous calls. By completing this lab you will be able to write cleaner, more modular code. Note that AJAX technically uses XML as the data format, but we will be using JSON which is easier to parse, and becoming the defacto standard for much data on the web. The principles of asynchronous communication and callback functions are effectively identical for XML and JSON though. ## Contents -This chapter covers a wide number of topics associated with running async code. The first 4 should be considered **essential** and the rest are topics that, whilst not essential to writing NodeJS code, will greatly improve your knowledge of how asyncronous code works and, should you choose to implement these, will lead to much cleaner code. - -1. Async callbacks * -2. JSON data * -3. Modules and callbacks * -4. Nested callbacks * +1. Async callbacks +2. JSON data +3. Modules and callbacks +4. Nested callbacks 5. Generators 6. Promises 7. Async functions