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.
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".
Surely we are not caching the length in cookies or local storage. My question is:
Where is the location of the "cached" length? Is it in memory? If so, why are we using the word "cached"?