JavaScript is a text-based programming language that's commonly used to make webpages more dynamic and interactive for visitors.
Always test your pages using Google’s own tools and third-party resources to view the rendered HTML to make sure all your content is showing up. Google has come a long way with rendering JavaScript.