Scripting languages like JavaScript allow scripts to be executed by programs. Scripts contain lists of instructions that are interpreted on the fly rather than compiled. Scripts can run on the client-side in web browsers or on the server-side through programs like PHP. JavaScript is commonly used for client-side scripting due to its ease of use and ability to dynamically update web pages in the browser. The JavaScript DOM provides methods for accessing and modifying HTML elements with JavaScript.