Active class for section in view port [closed]

I am building a code to highlight the active section in the viewport along with highlighting the nav element in view using Javascript. I did that by getting dimensions via getBoundingClientRect() and then add “active-class” using classlist. However, the active section is not working on my project.

Can someone review my repository here: https://github.com/Himanshukumar30/Landing-Page
and help me with this. TIA!