If you try too visit twitter.com with Javascript disabled, you will get a <noscript> error. If Twitter can't render, how does Google index it? I know Google most probably renders JS pages as well but let's imagine it doesn't. How would then Twitter be indexed??
At one time, and probably still today, Google <i>pays for</i> a "firehose" direct feed from twitter.<p><a href="https://searchengineland.com/everything-need-know-google-twitter-partnership-216892" rel="nofollow">https://searchengineland.com/everything-need-know-google-twi...</a>
Google does index JS pages.<p>It's not that hard to do, I've used<p><a href="https://htmlunit.sourceforge.io/" rel="nofollow">https://htmlunit.sourceforge.io/</a><p>to do just that.