JavaScript reference
This part of the JavaScript section on MDN serves as a repository of facts about the JavaScript language. Read more about this reference.
Built-ins
JavaScript standard built-in objects, along with their methods and properties.
- Value properties
- Function properties
eval()(en-US)
isFinite()(en-US)
isNaN()(en-US)
parseFloat()(en-US)
parseInt()(en-US)
decodeURI()(en-US)
decodeURIComponent()(en-US)
encodeURI()(en-US)
encodeURIComponent()(en-US) - Fundamental objects
- Error objects
Error
AggregateError
EvalError
InternalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
- Numbers & dates
- Text processing
- Indexed Collections
Array
Int8Array
Uint8Array
Uint8ClampedArray
Int16Array
Uint16Array
Int32Array
Uint32Array
Float32Array
Float64Array
BigInt64Array
BigUint64Array - Keyed collections
- Structured data
- Control abstraction
- Reflection
- Internationalization
Intl
Intl.Collator(en-US)
Intl.DateTimeFormat(en-US)
Intl.DisplayNames(en-US)
Intl.ListFormat(en-US)
Intl.Locale(en-US)
Intl.NumberFormat(en-US)
Intl.PluralRules(en-US)
Intl.RelativeTimeFormat(en-US)
Statements
JavaScript statements and declarations
- Control flow
Block(en-US)
break(en-US)
continue(en-US)
Empty(en-US)
if...else(en-US)
switch(en-US)
throw(en-US)
try...catch(en-US) - Declarations
- Functions and classes
function(en-US)
function*
async function(en-US)
return(en-US)
class(en-US) - Iterations
do...while(en-US)
for(en-US)
for each...in
for...in(en-US)
for...of(en-US)
for await...of(en-US)
while(en-US)
Expressions and operators
JavaScript expressions and operators.
- Primary expressions
this(en-US)
function(en-US)
class(en-US)
function*(en-US)
yield(en-US)
yield*(en-US)
async function(en-US)
await(en-US)
[](en-US)
{}(en-US)
/ab+c/i(en-US)
( )(en-US)
null - Left-hand-side expressions
Property accessors (en-US)
new(en-US)
new.target(en-US)
super(en-US)
...obj(en-US) - Increment & decrement
- Unary operators
delete(en-US)
void(en-US)
typeof(en-US)
+(en-US)
-(en-US)
~(en-US)
!(en-US)
- Arithmetic operators
+(en-US)
-(en-US)
/(en-US)
*(en-US)
%(en-US)
**(en-US) - Relational operators
in(en-US)
instanceof(en-US)
<(en-US)
>(en-US)
<=(en-US)
>=(en-US) - Equality operators
- Bitwise shift operators
- Binary bitwise operators
&(en-US)
|(en-US)
^(en-US) - Binary logical operators
- Conditional (ternary) operator
- Assignment operators
=(en-US)
*=(en-US)
/=(en-US)
%=(en-US)
+=(en-US)
-=(en-US)
<<=(en-US)
>>=(en-US)
>>>=(en-US)
&=(en-US)
^=(en-US)
|=(en-US)
[a, b] = [1, 2](en-US)
{a, b} = {a:1, b:2}(en-US)
Functions
This chapter documents how to work with JavaScript functions to develop your applications.

