
Set up a web JavaScript project by creating index.html, style.css, and script.js, load the script at the bottom of the body, and view console output with a live server.
Learn to declare and call functions in JavaScript to group reusable logic, use parameters, and return values. See greetings with template strings and console output, and preview DOM interactions later.
Learn to change page content and styles with JavaScript by updating textContent, injecting HTML with innerHTML, and toggling CSS classes via classList.
Create a basic form with an input and submit button, intercept the submit event, prevent reload, and read and validate the input to display a dynamic message.
See how JavaScript works with HTML and CSS to create interactive websites, and prepare for the next step with React.
JavaScript is what makes the web interactive.
In this course, you’ll learn JavaScript for the browser from scratch, in a practical and beginner-friendly way. We’ll focus on understanding how JavaScript works together with HTML and CSS to create dynamic and interactive web pages.
Just like my other courses in the Hands-On Introduction series, this is a no-slides course. Everything is done directly in the code editor, step by step, so you can follow along and truly understand what’s happening — not just copy and paste code.
We’ll start with the fundamentals of JavaScript and gradually move toward real-world browser use cases, such as manipulating the DOM, handling user events, working with forms, and updating the UI dynamically.
This course is designed to give you a solid foundation that prepares you for modern frontend frameworks like React or Next.js, where many of these concepts are abstracted but still essential to understand.
By the end of this course, you’ll not only understand JavaScript syntax, but also how JavaScript thinks and behaves inside the browser. We’ll explore how the browser loads your code, how scripts interact with HTML elements, and how user actions trigger JavaScript logic. You’ll learn how to debug problems using browser developer tools and understand common mistakes beginners make when working with JavaScript on the web. This knowledge will make learning this modern frontend frameworks in the future much easier and far less confusing.