1. JavaScript can be used to add interactivity and dynamic behavior to web pages. It runs in the browser and can change HTML content, run functions in response to events, and validate form input.
2. The Document Object Model (DOM) provides methods for accessing and modifying HTML elements via JavaScript. Elements can be referenced by ID or name and then manipulated.
3. JavaScript code can be included inline in HTML pages or in external .js files linked via <script> tags. Functions are often attached to events like clicks or form submissions to run code when those events occur.