Operadores

  • Enlace amigable (slug) de la revisión: Referencia_de_JavaScript_1.5/Operadores
  • Título de la revisión: Operadores
  • Id de la revisión: 176293
  • Creada:
  • Creador: Nathymig
  • ¿Es la revisión actual? No
  • Comentario

Contenido de la revisión

Operadores aritméticos
Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value. The standard arithmetic operators are addition (+), subtraction (-), multiplication (*), and division (/).
Operadores de asignación
An assignment operator assigns a value to its left operand based on the value of its right operand.
Bitwise operators treat their operands as a set of 32 bits (zeros and ones), rather than as decimal, hexadecimal, or octal numbers. For example, the decimal number nine has a binary representation of 1001. Bitwise operators perform their operations on such binary representations, but they return standard JavaScript numerical values.
A comparison operator compares its operands and returns a logical value based on whether the comparison is true. The operands can be numerical or string values. Strings are compared based on standard lexicographical ordering, using Unicode values. A boolean value is returned as the result of the comparison.
Operadores lógicos
Logical operators are typically used with boolean (logical) values, and when they are, they return a boolean value. The AND (&&) and OR (||) operators actually return the value of one of the specified operands, so if these are used with non-boolean values, they may return a non-boolean value.
String
In addition to the comparison operators, which can be used on string values, the concatenation operator (+) concatenates two string values together, returning another string that is the union of the two operand strings. For example, "my " + "string" returns "my string".
Miembros
Member operators provide access to a property or method of an object.
Operadores especiales
There are several special operators that do not fit into any other category:
Condicional
La coma
delete
function
in
instanceof
new
this
typeof
void
La precedencia
Operator precedence defines the order in which operators are evaluated.
{{ wiki.languages( { "en": "en/Core_JavaScript_1.5_Reference/Operators", "fr": "fr/R\u00e9f\u00e9rence_de_JavaScript_1.5_Core/Op\u00e9rateurs", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Operatory" } ) }}

Fuente de la revisión

<p>
</p>
<dl><dt><a href="es/Referencia_de_JavaScript_1.5/Operadores/Aritm%c3%a9ticos">Operadores aritméticos</a>
</dt><dd> Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value.  The standard arithmetic operators are addition (+), subtraction (-), multiplication (*), and division (/).
</dd></dl>
<dl><dt><a href="es/Referencia_de_JavaScript_1.5/Operadores/Asignaci%c3%b3n">Operadores de asignación</a>
</dt><dd> An assignment operator assigns a value to its left operand based on the value of its right operand.
</dd></dl>
<dl><dt></dt><ul><li> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Bitwise">Operadores bitwise</a>
</li></ul>
<dd> Bitwise operators treat their operands as a set of 32 bits (zeros and ones), rather than as decimal, hexadecimal, or octal numbers.  For example, the decimal number nine has a binary representation of 1001.  Bitwise operators perform their operations on such binary representations, but they return standard JavaScript numerical values.
</dd></dl>
<dl><dt></dt><ul><li> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Comparativos">Operadores de comparación</a> 
</li></ul>
<dd> A comparison operator compares its operands and returns a logical value based on whether the comparison is true.  The operands can be numerical or string values.  Strings are compared based on standard lexicographical ordering, using Unicode values.  A boolean value is returned as the result of the comparison.
</dd></dl>
<dl><dt><a href="es/Referencia_de_JavaScript_1.5/Operadores/L%c3%b3gicos">Operadores lógicos</a>
</dt><dd> Logical operators are typically used with boolean (logical) values, and when they are, they return a boolean value.  The AND (&amp;&amp;) and OR (||) operators actually return the value of one of the specified operands, so if these are used with non-boolean values, they may return a non-boolean value.
</dd></dl>
<dl><dt><a href="es/Referencia_de_JavaScript_1.5/Operadores/String">String</a> 
</dt><dd> In addition to the comparison operators, which can be used on string values, the concatenation operator (+) concatenates two string values together, returning another string that is the union of the two operand strings.  For example, <code>"my " + "string"</code> returns <code>"my string"</code>.
</dd></dl>
<dl><dt><a href="es/Referencia_de_JavaScript_1.5/Operadores/Miembros">Miembros</a> 
</dt><dd> Member operators provide access to a property or method of an object.
</dd></dl>
<dl><dt>Operadores especiales
</dt><dd> There are several special operators that do not fit into any other category:
</dd><dd> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Especiales/Condicional">Condicional</a>
</dd><dd> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Especiales/coma">La coma</a> 
</dd><dd> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Especiales/delete">delete</a>
</dd><dd> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Especiales/function">function</a>
</dd><dd> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Especiales/in">in</a>
</dd><dd> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Especiales/instanceof">instanceof</a>
</dd><dd> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Especiales/new">new</a>
</dd><dd> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Operadores_especiales/Operador_this">this</a>
</dd><dd> <a href="es/Referencia_de_JavaScript_1.5/Operadores/Especiales/typeof">typeof</a>
</dd><dd>  <a href="es/Referencia_de_JavaScript_1.5/Operadores/Especiales/void">void</a>
</dd></dl>
<dl><dt><a href="es/Referencia_de_JavaScript_1.5/Operadores/Precedencia">La precedencia</a>
</dt><dd> Operator precedence defines the order in which operators are evaluated.
</dd></dl>
<div class="noinclude">
</div>
{{ wiki.languages( { "en": "en/Core_JavaScript_1.5_Reference/Operators", "fr": "fr/R\u00e9f\u00e9rence_de_JavaScript_1.5_Core/Op\u00e9rateurs", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Operatory" } ) }}
Revertir a esta revisión