Hi folks,

After a few years of relying on cut and paste, I have decided to learn JavaScript properly.

The first question I have (of many) is this: is there a hard and fast rule that makes it easy to remember which methods take arguments inside the brackets like

Code:
document.write(argument);
as opposed to the ones you stick after the variable and a dot like

Code:
myArray.sort();
Why is that not:

Code:
sort(myArray);
???