document.addEventListener("mousemove", () => { let mousex = event.clientX; // Gets Mouse X let mousey = event.clientY; // Gets Mouse Y console.log([mousex, mousey]); // Prints data });