JavaScript allows dynamic programming capabilities to be added to web pages. It is a lightweight scripting language executed in web browsers that is case sensitive. JavaScript code can be embedded directly in HTML pages between <script> tags or placed in external .js files. Code in the HTML body will execute as the page loads while code in the header is executed when called by functions in the body. Common events that can trigger JavaScript code include onload, onsubmit, onmouseover and onchange.