Question · JavaScript and TypeScript course · Module 8: Events and the DOM

IntersectionObserver

What is IntersectionObserver used for in JavaScript?

Answer options

  • To observe when an element enters/exits the visible area
  • To observe changes in the DOM tree
  • To observe changes in localStorage
  • To observe changes in element size

You can check the correct answer by solving this task in the CodeWorlds game.