title: Time complexity of JavaScript's array.length
body: <p>What is the time complexity of a call to <code>array.length</code> in JavaScript? I think it would constant since it seems that property is set automatically on all arrays and you're just looking it up?</p>