Some programming experience with a language such as C or Visual Basic is useful, but not required.
println might have been defined as follows:
Mapping to equivalent functionality in other environments is left as an exercise for the reader.
This reference includes descriptive syntax sections to demonstrate appropriate or common usage of the subject of documentation. Within these sections, all text literals to be reproduced verbatim are non-italicized, with the exception of ellipses. Words in italics represent user-defined names or statements. Any portions enclosed in square brackets (
]) are optional. A comma-delimited sequence that includes an ellipsis (
...) indicates that the sequence is a list and all items in the sequence except the first are optional (e.g. only
param1 is required in "
param1, param2, ..., paramN").
Typed array constructors
- Declara uma variável local no escopo do bloco atual, opcionalmente iniciando-a com um valor.
- There are several special operators that do not fit into any other category:
- Arithmetic Operators
-, unary +)
Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value.
- Assignment Operators
=, *=, /=, %=, +=, -=, <<=, >>=, >>>=, &=, ^=, |=)
An assignment operator assigns a value to its left operand based on the value of its right operand.
- Bitwise Operators
- Comparison Operators
A comparison operator compares its operands and returns a logical value based on whether the comparison is true.
- Logical Operators
Logical operators are typically used with boolean (logical) values, and when they are, they return a boolean value.
- String Operators
The string operators concatenate two string values together, returning another string that is the union of the two strings.
- Member Operators
Member operators provide access to a property or method of an object.
- Special Operators
- Conditional Operator
condition ? ifTrue : ifFalse)
The conditional operator returns one of two values based on the logical value of the condition.
- Comma Operator
The comma operator allows multiple expressions to be evaluated in a single statement and returns the result of the last expression.
- delete Operator
The delete operator deletes objects.
- function Operator
The function operator defines a function.
- get Operator
The get operator defines a property to be a getter.
- in Operator
The in operator determines whether an object has a given property.
- instanceof Operator
The instanceof operator determines whether an object is an instance of another object.
The let operator temporarily assigns a value to a variable that only effects an expression.
- new Operator
The new operator creates an instance of a constructor.
- set Operator
The set operator defines a property to be a setter.
- this Operator
The this operator refers to the execution context.
- typeof Operator
The typeof operator determines the type of a given object.
- void Operator
The void operator discards an expressions return value.
- yield Operator
The yield operator determines what is returned in a generator by that generator's iterator.
- Operator Precedence
- Operator precedence defines the order in which operators are evaluated.
- Comentários de código (