Posted over 3 years ago. Visible to the public.
- Understand what modules are and what export and import do.
- Watch smb://nas.makandra.de/makandra_daten/Videos/Vorträge_Inhouse/Henning_AsyncJS_21_09_2017
- Read about Promise
- Read about async / await.
- Read and understand the CoffeeScript documentation
- Understand that CoffeeScript supports implicit returns (like Ruby)
- Understand how loops and comprehensions work in CoffeeScript
- Browsers don't understand CoffeeScript. Find the component in our stack that fixes this.
- Understand how different values compare via
- Understand how CoffeeScript's
ismap to those
- Understand the benefit of LoDash's
- Understand in detail how a simple workaround for classes in ES5 works under the hood.
- Understand the reason for Immediately-Invoked Function Expression (IIFE) and the problem it solves.
- For the following excercies, don't simply use a library or Stackoverflow code for this. You can look at other people's code to see how it works, but you must understand the concepts and be able to implement them on your own.
- Write a simple class
Rectangle, has properties
areamethod that returns the product of width and height.
- Implement it in CoffeeScript.
- Implement it in ES6.
- Compare the transpiled ES5 output of both. Note their class boilerplates.
- Manually convert the ES6 class to ES5 using the module pattern.
- Write a
summethod that takes an arbitrary number of arguments ("rest args") and computes their sum.
- Implement it in ES6, CoffeeScript, and ES5 separately (without using a transpiler)
sumin ES5 as an IIFE
- Find ways to test equality (what humans mean when they say "equal") for the following types.
- Structured data structures consisting of nested objects, arrays and scalar variables
- Discuss with our mentor: