In Javascript or any programming language in general, is variable.someMethod() the same as someMethod(variable)?
Just something I've been wondering about. If any variable seperated by a dot and followed by a method is the same as that variable being inside the parameter of the method