log mouse x and y javascript code example
Example: how to get mouse x and y in javascript
document.addEventListener("mousemove", () => {
let mousex = event.clientX; // Gets Mouse X
let mousey = event.clientY; // Gets Mouse Y
console.log([mousex, mousey]); // Prints data
});