Limiting the Parameters of MouseX and MouseY

Hello! I have just begun to learn JavaScript on Khan Academy and I am have a hard time figuring out how to limit the parameters being fed by mouseX and mouseY. Some insight would really help.