Javascript scrolling and moving positions
===

the window object in js has a scrollBy() method, which takes two arguments, what do those arguments represent? the book where im learning this from says "the number of pixels to scoll by" but what does it mean. does it mean when i drag the scroll bar on the right side it will move the content by 10 pixels or if i click the down or up scroll button it will move the content by 10 pixels that i specified or what??

also i cant seem to understand the difference between the moveTo() method and the moveBy() method they seem like they do the exact same thing, but if that the case then whats the point in having two functions that do the same thing.