JavaScript is widely used in the development of websites. It can be used for a wide range of client side functions, - such as snow falling on this page and pop-up windows.
The use of Javascript is kept to a minimum in order to maximise Search Engine Optimisation.