Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.92 KB

File metadata and controls

27 lines (18 loc) · 1.92 KB

Homework

Start the homework

Need to brush up on the homework setup process? Check this out before you get into some git confusion!

Why should i even do this homework?

Promises creates a pleasant way of working with asynchronous code. It will make your asynchronous code nearly look synchronous. It is possible to compose promises further developing the function part of javascript.

Since promises is becoming standard in javascript, new browser api's use promises for interacting with them. getUserMedia for accessing webcam, Navigator.getBattery() for getting battery level, Bluetooth.requestDevice(), serviceWorker or USB.requestDevice()

If you struggle to do this weeks homework there are a couple of things to do:

Currency calculator

The homework for this week is to build a currency calculator using this API: https://open.er-api.com/v6/latest/USD

Technical specifications

  1. Make a request to the API and store the Exchange rates as well as a list of currencies for the dropdowns.
  2. User can enter an amount
  3. User can choose a currency to convert from(default should be EUR)
  4. User can choose a currency to convert to(Default should be DKK)
  5. Whenever amount, currency from or currency to changes we show what the amount translates to in the to currency