Code the web.
Beautifully.
Free, interactive lessons that take you from your first console.log
to async iterators & web APIs β all in your browser.
- 805+ Lessons
- 11 Tracks live
- 134+ Exercises
- Free Forever
Loved by developers using
Built on years of teaching. Read by hundreds of thousands.
A curriculum shaped by working engineers, FAANG-level interviewers, and the questions real learners ask every day.
Why jsschools
Everything you need to actually learn.
No fluff. No paywall. Just clear lessons, runnable examples, and a reference you'll keep coming back to.
Run code without leaving the page.
Every example is editable. Press Run and see the result instantly, side-by-side with the lesson.
Reference built-in
Quick-lookup docs alongside every tutorial. Find a method in two clicks.
Light & dark
Reads beautifully day or night. Your eyes, your choice.
A lesson, up close
Read it. Run it. Remember it.
Every lesson is short, focused, and runnable. Edit any example and see the result in real time.
JS Basic βΊ Variables
JavaScript Variables
Variables are containers for storing data values. In JavaScript, you can declare variables with let, const, or var.
Example
let message = "Hello, world!";
console.log(message); Use const for values that should not change, and let for everything else.
Ready to write your first line of JS?
It takes 30 seconds. No signup. Just code.
Start the JavaScript track