Refugees Code

Introduction

Welcome back! After having learned the basics of Javascript and how it can interact with the DOM, let's start tackling some advanced features of this incredible language. In the following sections, you'll learn a bit more about arrays, how to interact with them, loop them or mutate them. You'll learn about functions, what they're for, how to use them in your advantage to make your code more reusable. You'll also have a grasp at objects, a really powerful way to model the data of your applications. And last but not least, you will learn about API calls, the easiest and fastest way to send requests to the internet to get remote data into your application. Let's start!

Goals

By the end of this section, you should:

  • Know how to create a function, either with the basic syntax or the arrow way.
  • Be comfortable using map, filter and reduce methods.
  • Understand what the scope is and why is important together with closures
  • Know how to create objects
  • Understand a tiny bit of the this keyword, and how they relate to objects
  • Understand what the spread operator is and how to destructure objects

On this page