JavaScript reference
The JavaScript reference serves as a repository of facts about the JavaScript language. The entire language is described here in detail. As you write JavaScript code, you'll refer to these pages often (thus the title "JavaScript reference").
The JavaScript language is intended to be used within some larger environment, be it a browser, server-side scripts, or similar. For the most part, this reference attempts to be environment-agnostic and does not target a web browser environment.
If you are new to JavaScript, start with the guide. Once you have a firm grasp of the fundamentals, you can use the reference to get more details on individual objects and language constructs.
Built-ins
JavaScript standard built-in objects, along with their methods and properties.
Value properties
Function properties
eval()
isFinite()
isNaN()
parseFloat()
parseInt()
decodeURI()
decodeURIComponent()
encodeURI()
encodeURIComponent()
escape()
Deprecatedunescape()
Deprecated
Fundamental objects
Error objects
Numbers and dates
Text processing
Indexed collections
Keyed collections
Structured data
Managing memory
Control abstraction objects
Reflection
Internationalization
Statements
Control flow
Declaring variables
Functions and classes
Iterations
Others
Expressions and operators
Primary expressions
Left-hand-side expressions
Increment and decrement
Unary operators
Arithmetic operators
Relational operators
Equality operators
Bitwise shift operators
Binary bitwise operators
Binary logical operators
Conditional (ternary) operator
Assignment operators
Yield operators
Spread syntax
Comma operator
Functions
Classes
Regular expressions
JavaScript regular expressions.
- Backreference:
\1
,\2
- Capturing group:
(...)
- Character class:
[...]
,[^...]
- Character class escape:
\d
,\D
,\w
,\W
,\s
,\S
- Character escape:
\n
,\u{...}
- Disjunction:
|
- Input boundary assertion:
^
,$
- Literal character:
a
,b
- Lookahead assertion:
(?=...)
,(?!...)
- Lookbehind assertion:
(?<=...)
,(?<!...)
- Modifier:
(?ims-ims:...)
- Named backreference:
\k<name>
- Named capturing group:
(?<name>...)
- Non-capturing group:
(?:...)
- Quantifier:
*
,+
,?
,{n}
,{n,}
,{n,m}
- Unicode character class escape:
\p{...}
,\P{...}
- Wildcard:
.
- Word boundary assertion:
\b
,\B