document.addEventListener("scroll", () => { console.log(window.scrollY); });
window.addEventListener("scroll", () => { console.log(this.scrollY); });