I realized that all this time I had been using a Javascript property:


and not realising it didn’t have the parenthesis at the end. So I went out and found this stackoverflow answer to my question. It is so that length is a property and not a function. This property is available to strings and arrays. Its something we use everyday and often take for granted.