MDN will be in maintenance mode for a brief period Tuesday June 2, from around 10:00 AM until no later than
12:00 PM Pacific (in UTC, Tuesday June 2, 5:00
PM to 7:00 PM). There should be no disruption in service.
Search MDN Sign in
Technologies ▼ References & Guides ▼ Feedback ▼
See JavaScript English ▼
JavaScript reference
Jump to section
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.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Value properties Function properties Fundamental objects Error objects
Infinity eval() Object Error
NaN isFinite() Function AggregateError
undefined isNaN() Boolean EvalError
globalThis parseFloat() Symbol InternalError
parseInt() RangeError
decodeURI() ReferenceError
decodeURIComponent() SyntaxError
encodeURI() TypeError
encodeURIComponent() URIError
Numbers & dates Text processing Indexed Collections Keyed collections
Number String Array Map
BigInt RegExp Int8Array Set
Math Uint8Array WeakMap
Date Uint8ClampedArray WeakSet
Int16Array
Uint16Array
Int32Array
Uint32Array
Float32Array
l t6
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Float64Array
BigInt64Array
BigUint64Array
Structured data Control abstraction Re ection Internationalization
ArrayBuffer Promise Reflect Intl
SharedArrayBuffer Generator Proxy Intl.Collator
Atomics GeneratorFunction Intl.DateTimeFormat
DataView AsyncFunction Intl.ListFormat
JSON Intl.NumberFormat
Intl.PluralRules
Intl.RelativeTimeFormat
Intl.Locale
WebAssembly
WebAssembly
WebAssembly.Module
WebAssembly.Instance
WebAssembly.Memory
WebAssembly.Table
WebAssembly.CompileError
WebAssembly.LinkError
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
y
WebAssembly.RuntimeError
Statements
JavaScript statements and declarations
Control ow Declarations Functions and classes Iterations
Block var function do...while
break let function* for
continue const async function for each...in
Empty return for...in
if...else class for...of
switch for await...of
throw while
try...catch
Other
debugger
import
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
label
with
Expressions and operators
JavaScript expressions and operators.
Primary expressions Left-hand-side Increment & Unary operators
this
expressions decrement delete
function Property accessors A++ void
class new A-- typeof
function* new.target ++A +
yield super --A -
yield* ...obj ~
async function !
await
[]
{}
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
/ab+c/i
( )
null
Arithmetic operators Relational operators Equality operators Bitwise shift
+ in ==
operators
- instanceof != <<
/ < === >>
* > !== >>>
% <=
** >=
Binary bitwise Binary logical Conditional (ternary) Assignment
operators operators operator operators
& && (condition ? ifTrue : =
| || ifFalse) *=
^ /=
%=
+=
-=
<<=
>>=
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
>>>=
&=
^=
|=
[a, b] = [1, 2]
{a, b} = {a:1, b:2}
Functions
This chapter documents how to work with JavaScript functions to develop your applications.
arguments
Arrow functions
Default parameters
Rest parameters
ddi i l f
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Additional reference pages
Lexical grammar
Data types and data structures
Strict mode
Deprecated features
Last modified: May 8, 2020, by MDN contributors
Related Topics
JavaScript
Tutorials:
▶ Complete beginners
▶ JavaScript Guide
▶ Intermediate
▶ Advanced
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
References:
▶ Built-in objects
▶ Expressions & operators
▶ Statements & declarations
▶ Functions
▶ Classes
▶ Errors
▶ Misc
Learn the best of web development
Get the latest and greatest from MDN delivered straight to your inbox.
you@example.com
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Sign up now
Web Technologies About
Learn Web Development MDN Web Docs Store
About MDN Contact Us
Feedback Firefox
MDN Mozilla
© 2005-2020 Mozilla and individual contributors. Content is available under these licenses.
Terms Privacy Cookies
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD