JavaScript is a programming language that WordPress uses to make certain processing occur in your web browser when it is inconvenient or impossible for the server to do that processing. For example, when you reply to a comment in a WordPress blog, WordPress uses JavaScript to move the comment form inside the comment you are replying to.

Reference http://codex.wordpress.org/Glossary