JavaScript in the browser
Make pages interactive with the DOM, events, timers, callbacks and `fetch`.
- FND.10.01The DOM: selecting and changing elementsCoreBeginnerBeing written
- FND.10.02Events and listenersCoreBeginnerBeing written
- FND.10.03Callbacks and timersCoreBeginner8 min
- FND.10.04Promises and async/await (first look)CoreBeginnerBeing written
- FND.10.05fetch and JSON APIsCoreBeginnerBeing written
- FND.10.06Storing data in the browser (first look)CoreBeginnerBeing written
Interview questions in this module
- What is the DOM?
- What is the difference between
textContentandinnerHTML? Why caninnerHTMLbe dangerous? - What is event delegation and why is it useful?
- Why does
setTimeout(() => console.log("a"), 0)print after synchronous code? - What is a promise? What are its three states?
- Does
fetchreject on a 404 response? How do you handle errors correctly? - What is
preventDefault()used for?