Intersection Observer & Efficient Scroll Handling

What is the purpose of the isIntersecting property in the IntersectionObserverEntry?
const callback = (entries) => {
  entries.forEach(entry => {
    if (entry.isIntersecting) {
      console.log('Element has entered the root');
    } else {
      console.log('Element has left the root');
    }
  });
};
Next Question (7/20)