JavaScript "cache" vs "memory"
<p>If you search for how to cache a variable in JS on Stackoverflow, you'll find answers pointing to cookies or local storage for example. </p>

<p><em>On the other hand, the word "cached" is often used as such: "cache the length of the array so we don't have to compute it every time".</em> </p>

<p>Surely we are not caching the length in cookies or local storage. My question is:</p>

<p>Where is the location of the "cached" length? Is it in memory? If so, why are we using the word "cached"?</p>