Skip to content
Intro to JS+prossecingJS
Share
Explore
Session 3

icon picker
Interactive programs

mouseX/mouseY

These variables represent the current coordinates of the mouse.
mouseX represents the x-coordinate of the mouse
mouseY represents the y-coordinate of the mouse

Example

Result

plotting points.gif

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.