JavaScript is a programming language that can be embedded in HTML pages and used to create dynamic web page content. It allows interacting with browsers by opening windows, submitting forms, and loading URLs. JavaScript code can appear between <script> tags in HTML files or in external .js files linked via the src attribute. The browser runs the JavaScript interpreter to execute the code as pages load. Core JavaScript defines syntax rules while client-side JavaScript is used in browsers to interact with HTML content.