Skip to content
KALANBLON
Show contents

Chapter 6 of 6 · 10 min

Quiz: performance and project

Debounce, throttle, memoization and layered architecture: let's check that your application is fast and solid. You need 70% correct answers.

Quiz

6 questions · pass mark: 70%

  1. 1.For a search-as-you-type, which technique avoids one request per key?

    One answer

  2. 2.Why does this debounce have no effect?

    One answer

    field.addEventListener("input", (e) => {
      debounce(search, 200)(e.target.value);
    });
  3. 3.Complete to load the image only when it gets close to the screen.

    Complete the code

    <img src="map.avif" alt="Map of water points" loading="____">
  4. 4.Which function can be memoized safely?

    One answer

  5. 5.In the task board, what should be stored in the state? (several answers)

    Several answers possible

  6. 6.Why validate data reread from localStorage?

    One answer

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