Learn JavaScript
Learn JavaScript online through our comprehensive course. Make your pages interactive. The core programming language of the web.
Curriculum
01JavaScript Fundamentals
Introduction to JavaScript
Learn what JS is and how it makes the web interactive.
Variables
Store data in your programs.
let, const and var
Understand variable scoping.
Data Types
Learn about strings, numbers, and booleans.
Operators
Perform math and logic.
Type Conversion
Change data from one type to another.
Conditions
Run code based on logic.
Loops
Repeat code efficiently.
02Functions and Data
Functions
Create reusable blocks of code.
Function Parameters
Pass data into your functions.
Return Values
Get data out of your functions.
Arrays
Store lists of data.
Array Methods
Manipulate array data.
Objects
Store complex grouped data.
Object Methods
Add behavior to objects.
Destructuring
Extract data cleanly.
03DOM and Browser
Introduction to the DOM
Understand the Document Object Model.
Selecting Elements
Find HTML elements with JS.
Changing HTML and CSS
Modify the page dynamically.
Events
Respond to user actions.
Event Listeners
Attach events to elements safely.
Forms with JavaScript
Handle form submissions.
04Modern JavaScript
Arrow Functions
Write shorter functions.
Template Literals
Interpolate strings easily.
Spread and Rest
Copy and gather data.
Modules
Split your code across files.
Promises
Handle asynchronous data.
Async and Await
Write async code synchronously.
Fetch API
Make HTTP requests.
Explore the JavaScript Ecosystem
Continue learning JavaScript
Access all JavaScript lessons and tutorials.
Practice JavaScript exercises
Apply your knowledge with interactive coding challenges.
Test your knowledge with JavaScript quizzes
Check your understanding with multiple-choice questions.
Build JavaScript projects
Create real-world applications from scratch.
Try JavaScript in the playground
Write and execute JavaScript code instantly in your browser.
Browse the JavaScript reference
Quickly look up syntax, methods, and properties.