What is JavaScript?
JavaScript is the programming language of the web. It makes pages interactive — responding to clicks, validating forms, fetching data, animating elements, and much more.
JavaScript runs directly in the browser. You don't need to install anything — just open your browser and start coding.
// Your first JavaScript program console.log("Hello, World!"); // Show alert in browser alert("Welcome to JavaScript!"); // Add JS to HTML with script tag // <script src="app.js"></script> // <script> ... inline ... </script>