javaScript can change the content of an html element.
You can Click (contineously) the light bulb to turn on/off the light
JavaScript can react to events. Like the click of a button:
JavaScript can change the style of an HTML element.