JavaScript is an object-oriented scripting language used to make webpages interactive. It can access and modify the content, structure, and style of an HTML document. JavaScript code can be embedded directly in HTML, or linked from external .js files. The Document Object Model (DOM) represents an HTML document as nodes that JavaScript can manipulate by accessing properties and methods. Functions are blocks of JavaScript code that perform tasks when called.