JavaScript impacts SEO by affecting how search engines crawl content, potentially causing indexing delays or making dynamic content invisible to crawlers.