Referência de JavaScript
Esta parte da secção de JavaScript na MDN serve como um repositório de factos sobre a linguage JavaScript. Leia mais sobre esta referência.
Integrações
Objetos integrados padrões de JavaScript, em conjunto com os seus métodos e propriedades.
- Propriedades de Valor
- Propriedades de Função
eval()
(en-US)
isFinite()
(en-US)
isNaN()
(en-US)
parseFloat()
(en-US)
parseInt()
(en-US)
decodeURI()
(en-US)
decodeURIComponent()
(en-US)
encodeURI()
encodeURIComponent()
(en-US) - Objetos Fundamentais
- Objetos de Erro
Error
AggregateError
EvalError
InternalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
- Números e Datas
- Processamento de Texto
- Coleções Indexadas
Array
Int8Array
Uint8Array
Uint8ClampedArray
Int16Array
Uint16Array
Int32Array
Uint32Array
Float32Array
Float64Array
BigInt64Array
BigUint64Array
- Coleções ''Keyed''
- Dados Estruturados
- Abstração de Controlo
- Reflexão
- Internacionalização
Intl
Intl.Collator
(en-US)
Intl.DateTimeFormat
(en-US)
Intl.ListFormat
(en-US)
Intl.NumberFormat
(en-US)
Intl.PluralRules
(en-US)
Intl.RelativeTimeFormat
(en-US)
Intl.Locale
(en-US)
Declações (Statements)
Declarações e instruções de JavaScript
- Control flow
Block
break
(en-US)
continue
(en-US)
Empty
(en-US)
if...else
(en-US)
switch
(en-US)
throw
try...catch
(en-US) - Declarations
- Functions and classes
function
(en-US)
function*
(en-US)
async function
(en-US)
return
class
(en-US) - Iterations
do...while
(en-US)
for
for each...in
for...in
(en-US)
for...of
(en-US)
for await...of
(en-US)
while
(en-US)
Expressões e operadores
Expressões e operadores de JavaScript.
- Primary expressions
this
(en-US)
function
class
(en-US)
function*
(en-US)
yield
(en-US)
yield*
(en-US)
async function
(en-US)
await
(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
- 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)
Funções
This chapter documents how to work with JavaScript functions to develop your applications.