I am trying to use the equivalent to np.linalg.norm (which works fine locally) to Javascript. I’m not super familiar with JS but as far as I can tell, Math.norm is an existing function, although it throws an error when I try to use it. This is how I call it:

r = Math.norm(mouse_resp_1.getPos());

Am I incorrectly using it, do I have to separately download the math library, or is there some other issue?

Edit: The error is: TypeError: Math.floor() is not a function