Skip to content
KALANBLON
Show contents

Chapter 6 of 6 · 10 min

Quiz: organising an application

Modules, classes, closures and API client: let's check that your application is well organised. You need 70% correct answers.

Quiz

6 questions · pass mark: 70%

  1. 1.In an ES module, what can another file see?

    One answer

  2. 2.What does #balance mean in a class?

    One answer

  3. 3.Why can setTimeout(counter.increment, 100) fail?

    One answer

  4. 4.Complete to define a property computed on every read.

    Complete the code

    class Basket {
      ____ total() {
        return this.price * this.quantity;
      }
    }
  5. 5.In the weather client, which errors justify a new attempt? (several answers)

    Several answers possible

  6. 6.Why inject the clock into the client's constructor?

    One answer

Your progress is saved on this device. Create a free account to keep your progress on all your devices.