The .size() method is functionally equivalent to the .length property; however, the .length property is preferred because it does not have the overhead of a function call. They will both give you the same result but .length is slightly faster.