```
    const addActiveClass = () => {

    if( isInViewport(section) ) {

      section.classList.add('active-section');

      // How to remove the 'active-section' from other sections

    }

  }

}

```

what is the code should be written to remove active class from other section?
In jQuery this may be easy but what about pure js?