Is it possible to see a complete list of const or let variables?

I’m writing a piece of JavaScript code which will be used on any Instagram POSTS page (the landing page of an Instagram user). After pasting my code into the console and hitting Enter, the code needs to get all posts that have been loaded.

I noticed that, after scrolling down the page for some distance, the previously loaded posts disappear from DOM. And after scrolling back up, those posts re-appear in DOM. I think the data of those posts are most likely stored in a variable for quick access because I have seen a similar social media doing that.

I checked the window global variable and didn’t find any such variable under it. The variable (if there is one) must have been a const or let variable then. Is there a way to see a complete list of const or let variables so that I can try to dig out the data of posts from them?