JavaScript is the most popular programming language in the world.
This page contains some examples of what JavaScript can do.
One of many HTML methods is getElementById().
This example uses the method to "find" an HTML element (with id="demo"), and changes the element content (innerHTML) to "Hello JavaScript":
This example changes an HTML image, by changing the src attribute of an tag:
Changing the style of an HTML element, is a variant of changing an HTML attribute:
JavaScript is often used to validate input: