Skip to content

Latest commit

 

History

History

Week2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Reading Material JavaScript3 Week 2

Agenda

These are the topics for week 2:

  1. JavaScript Versions
  2. Promises
    • Callback Hell
    • ES6 Update
  3. Fetch API
  4. Thinking Like a Programmer III

1. JavaScript Versions

You are undoubtably different than when you were a baby. Back then you couldn't really do much: crying, laughing and taking dumps. That's pretty much it. But as the years past you increasingly could do more and more: walking, socializing or playing an instrument.

Likewise, so has JavaScript evolved. Back in

2. Promises

Callback Hell

By now you should've had some practice using callbacks. To reiterate, we use callbacks as a way to create asynchronicity in our application: we want to enable our application to do multiple things simultaneously.

But what if you want to have multiple

This is where Promises come in. The concept of a Promise, in execution, doesn't add anything new. It does exactly what callbacks aim to do, which is enabling asynchronous actions: for example, clicking a button to load in an image, while still being able to navigate the webpage.

What

So, in effect, you could call Promises the updated version of callbacks. Callbacks version 2.0.

3. Fetch API

Last week you learned about making API calls. For repetition's sake

4. Thinking Like a Programmer III

Finished?

Are you finished with going through the materials? High five! If you feel ready to get practical, click here.