HTML: Markup language
CSS: Styling language
JavaScript: Scripting language
Web APIs: Programming interfaces
All web technology
Learn web development
Discover our tools
Get to know MDN better
The JavaScript Guide shows you how to use JavaScript and gives an overview of the language. If you need exhaustive information about a language feature, have a look at the JavaScript reference.
This Guide is divided into the following chapters.
Overview: Introduction
Overview: Grammar and types
Overview: Control flow and error handling
if...else
switch
try
catch
throw
Overview: Loops and iteration
for
while
do...while
continue
break
for...in
for...of
Overview: Functions
Overview: Expressions and operators
Overview: Numbers and strings
Number
Math
String
Overview: Representing dates & times
Date
Overview: Regular expressions
Overview: Indexed collections
Overview: Keyed collections
Map
WeakMap
Set
WeakSet
Overview: Working with objects
Overview: Using classes
Overview: Promises
Overview: Typed arrays
Overview: Iterators and generators
Overview: JavaScript resource management
using
await using
DisposableStack
AsyncDisposableStack
Overview: Internationalization
Overview: JavaScript modules
After you have learned all fundamental features of JavaScript, you can explore some more niche features, or dive deeper into the language's mechanisms and concepts.