The JavaScript Guide shows you how to use JavaScript and gives an overview of the language. If you want to get started with JavaScript or programming in general, consult the articles in the learning area. If you need exhaustive information about a language feature, have a look at the JavaScript reference.
Draft
This page is not complete.
- Introduction
About this guide
About JavaScript
JavaScript and Java
ECMAScript
Tools
Hello World - Grammar and types
Lexical grammar & syntax
Variables and constants
Scoping
Data structures and types
Literals - Control flow and error handling
If...else
switch
try
/catch
/throw
Error
objects
Promises - Loops and iteration
for
for..in
for..of
while
do...while
- Functions
Defining functions
Calling functions
Closures
Arguments and parameters
Arrow functions - Expressions and operators
Expressions
Arithmetic operators
Bitwise & logical operators
Comparisons
Assignment & destructuring - Numbers and dates
Number
Math
Date - Text formatting
Strings
Template strings
Regular Expressions
Internationalization
- Indexed collections
Arrays
Typed arrays - Keyed collections and structured data
Maps, WeakMaps
Sets, WeakSets
JSON - Working with objects
Creating objects
Object initializer
Inheritance
Getter and setter - Details of the object model
Prototype-based OOP
Properties and methods
Inheritance
- Iterators and generators
Iterable protocol
Iterator protocol
Generators - Meta programming
Proxy
Reflect