Engrain by ByteRush

FND.10 6 concepts · 1 ready

JavaScript in the browser

Make pages interactive with the DOM, events, timers, callbacks and `fetch`.

  1. FND.10.01The DOM: selecting and changing elementsCoreBeginnerBeing written
  2. FND.10.02Events and listenersCoreBeginnerBeing written
  3. FND.10.03Callbacks and timersCoreBeginner8 min
  4. FND.10.04Promises and async/await (first look)CoreBeginnerBeing written
  5. FND.10.05fetch and JSON APIsCoreBeginnerBeing written
  6. FND.10.06Storing data in the browser (first look)CoreBeginnerBeing written

Interview questions in this module

  1. What is the DOM?
  2. What is the difference between textContent and innerHTML? Why can innerHTML be dangerous?
  3. What is event delegation and why is it useful?
  4. Why does setTimeout(() => console.log("a"), 0) print after synchronous code?
  5. What is a promise? What are its three states?
  6. Does fetch reject on a 404 response? How do you handle errors correctly?
  7. What is preventDefault() used for?