diff options
author | Anderson Vallejo <48649209+Vallejoanderson@users.noreply.github.com> | 2022-02-16 09:31:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 08:31:39 -0600 |
commit | 23bef9428c1ebdec66462a524833f60b228e9f06 (patch) | |
tree | 5e4389604ba4f54ffc1e1981d6190c078cd6bcf5 /files/es/web | |
parent | c5e82bf41f336a59704ee8c429e3147f73fa8a48 (diff) | |
download | translated-content-23bef9428c1ebdec66462a524833f60b228e9f06.tar.gz translated-content-23bef9428c1ebdec66462a524833f60b228e9f06.tar.bz2 translated-content-23bef9428c1ebdec66462a524833f60b228e9f06.zip |
Content sync and updated to md | Javascript/reference [ES] (#4110)
* update and sync to md
* Apply suggestions from code review
Co-authored-by: David Brito <39559632+davbrito@users.noreply.github.com>
Co-authored-by: Juan Vásquez <juan@logicalbricks.com>
* Update files/es/web/javascript/reference/index.md
* Update files/es/web/javascript/reference/index.md
* Update files/es/web/javascript/reference/index.md
Co-authored-by: David Brito <39559632+davbrito@users.noreply.github.com>
Co-authored-by: Juan Vásquez <juan@logicalbricks.com>
Diffstat (limited to 'files/es/web')
-rw-r--r-- | files/es/web/javascript/reference/index.html | 32 | ||||
-rw-r--r-- | files/es/web/javascript/reference/index.md | 315 |
2 files changed, 315 insertions, 32 deletions
diff --git a/files/es/web/javascript/reference/index.html b/files/es/web/javascript/reference/index.html deleted file mode 100644 index 4550bea633..0000000000 --- a/files/es/web/javascript/reference/index.html +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: Referencia de JavaScript -slug: Web/JavaScript/Reference -tags: - - JavaScript -translation_of: Web/JavaScript/Reference -original_slug: Web/JavaScript/Referencia ---- -<p>{{JsSidebar}}</p> - -<h2 id="Objetos_globales" name="Objetos_globales"><a href="/es/docs/Web/JavaScript/Referencia/Objetos_globales">Objetos globales</a></h2> - -<div>{{page('/es/docs/Web/JavaScript/Referencia/Objetos_globales', 'Objetos_est.C3.A1ndar_(por_categor.C3.ADa)')}}</div> - -<h2 id="Sentencias" name="Sentencias"><a href="/es/docs/Web/JavaScript/Referencia/Sentencias">Sentencias</a></h2> - -<p>{{page('/es/docs/Web/JavaScript/Referencia/Sentencias', 'Statements_and_declarations_by_category')}}</p> - -<h2 id="Operadores" name="Operadores"><a href="/es/docs/Web/JavaScript/Referencia/Operadores">Expresiónes y Operadores</a></h2> - -<p>{{page('/es/docs/Web/JavaScript/Referencia/Operadores', 'Expressions_and_operators_by_category')}}</p> - -<h2 id="Gramática_léxica"><a href="/es/docs/Web/JavaScript/Reference/Gramatica_lexica">Gramática léxica</a></h2> - -<ul> - <li><a href="/es/Referencia_de_JavaScript_1.5/Comentarios/comentario" title="es/Referencia_de_JavaScript_1.5/Comentarios/comentario">comentarios en el Código</a> (<code>//</code> and <code>/* */</code>)</li> - <li><a href="/es/Referencia_de_JavaScript_1.5/Palabras_Reservadas" title="es/Referencia_de_JavaScript_1.5/Palabras_Reservadas">Palabras reservadas</a></li> -</ul> - -<h2 id="Ap.C3.A9ndice_B_-_Caracter.C3.ADsticas_Desprobadas" name="Ap.C3.A9ndice_B_-_Caracter.C3.ADsticas_Desprobadas"><a href="/es/docs/Web/JavaScript/Referencia/Caracter%C3%ADsticas_Desaprobadas" title="es/Referencia_de_JavaScript_1.5/Características_Desaprobadas">Apéndice - Características Desaprobadas</a></h2> - -<p><span class="comment">Original Document At: <a class="external" href="http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.5/reference/" rel="freelink">http://devedge-temp.mozilla.org/libr...1.5/reference/</a></span></p> diff --git a/files/es/web/javascript/reference/index.md b/files/es/web/javascript/reference/index.md new file mode 100644 index 0000000000..109fc62ef7 --- /dev/null +++ b/files/es/web/javascript/reference/index.md @@ -0,0 +1,315 @@ +--- +title: Referencia de JavaScript +slug: Web/JavaScript/Reference +translation_of: Web/JavaScript/Reference +original_slug: Web/JavaScript/Referencia +--- +{{JsSidebar}} + +Esta parte de la sección de Javascript en MDN sirve como un repositorio de hechos sobre el lenguaje Javascript. Lee más [sobre esta referencia](/es/docs/Web/JavaScript/Reference/About). + +## Objetos globales + +[Objetos globales en Javascript](/es/docs/Web/JavaScript/Reference/Global_Objects), junto con sus métodos y propiedades. + +### Propiedades de tipo valor + +- {{JSxRef("globalThis")}} +- {{JSxRef("Infinity")}} +- {{JSxRef("NaN")}} +- {{JSxRef("undefined")}} + +### Propiedades de tipo función + +- {{JSxRef("Global_Objects/eval", "eval()")}} +- {{JSxRef("Global_Objects/isFinite", "isFinite()")}} +- {{JSxRef("Global_Objects/isNaN", "isNaN()")}} +- {{JSxRef("Global_Objects/parseFloat", "parseFloat()")}} +- {{JSxRef("Global_Objects/parseInt", "parseInt()")}} +- {{JSxRef("Global_Objects/decodeURI", "decodeURI()")}} +- {{JSxRef("Global_Objects/decodeURIComponent", "decodeURIComponent()")}} +- {{JSxRef("Global_Objects/encodeURI", "encodeURI()")}} +- {{JSxRef("Global_Objects/encodeURIComponent", "encodeURIComponent()")}} + +### Objetos fundamentales + +- {{JSxRef("Object")}} +- {{JSxRef("Function")}} +- {{JSxRef("Boolean")}} +- {{JSxRef("Symbol")}} + +### Objetos de errores + +- {{JSxRef("Error")}} +- {{JSxRef("EvalError")}} +- {{JSxRef("RangeError")}} +- {{JSxRef("ReferenceError")}} +- {{JSxRef("SyntaxError")}} +- {{JSxRef("TypeError")}} +- {{JSxRef("URIError")}} +- {{JSxRef("AggregateError")}} + +### Números y fechas + +- {{JSxRef("Number")}} +- {{JSxRef("BigInt")}} +- {{JSxRef("Math")}} +- {{JSxRef("Date")}} + +### Procesamiento de texto + +- {{JSxRef("String")}} +- {{JSxRef("RegExp")}} + +### Colecciones indexadas + +- {{JSxRef("Array")}} +- {{JSxRef("Int8Array")}} +- {{JSxRef("Uint8Array")}} +- {{JSxRef("Uint8ClampedArray")}} +- {{JSxRef("Int16Array")}} +- {{JSxRef("Uint16Array")}} +- {{JSxRef("Int32Array")}} +- {{JSxRef("Uint32Array")}} +- {{JSxRef("BigInt64Array")}} +- {{JSxRef("BigUint64Array")}} +- {{JSxRef("Float32Array")}} +- {{JSxRef("Float64Array")}} + +### Colecciones con campos clave + +- {{JSxRef("Map")}} +- {{JSxRef("Set")}} +- {{JSxRef("WeakMap")}} +- {{JSxRef("WeakSet")}} + +### Datos estructurados + +- {{JSxRef("ArrayBuffer")}} +- {{JSxRef("SharedArrayBuffer")}} +- {{JSxRef("DataView")}} +- {{JSxRef("Atomics")}} +- {{JSxRef("JSON")}} + +### Gestión de memoria + +- {{JSxRef("WeakRef")}} +- {{JsxRef("FinalizationRegistry")}} + +### Abstracción de control + +- {{JSxRef("Promise")}} +- {{JSxRef("GeneratorFunction")}} +- {{JSxRef("AsyncGeneratorFunction")}} +- {{JSxRef("Generator")}} +- {{JSxRef("AsyncGenerator")}} +- {{JSxRef("AsyncFunction")}} + +### Reflexión + +- {{JSxRef("Reflect")}} +- {{JSxRef("Proxy")}} + +### Internacionalización + +- {{JSxRef("Intl")}} +- {{JSxRef("Global_Objects/Intl/Collator", "Intl.Collator")}} +- {{JSxRef("Global_Objects/Intl/DateTimeFormat", "Intl.DateTimeFormat")}} +- {{JSxRef("Global_Objects/Intl/DisplayNames", "Intl.DisplayNames")}} +- {{JSxRef("Global_Objects/Intl/ListFormat", "Intl.ListFormat")}} +- {{JSxRef("Global_Objects/Intl/Locale", "Intl.Locale")}} +- {{JSxRef("Global_Objects/Intl/NumberFormat", "Intl.NumberFormat")}} +- {{JSxRef("Global_Objects/Intl/PluralRules", "Intl.PluralRules")}} +- {{JSxRef("Global_Objects/Intl/RelativeTimeFormat", "Intl.RelativeTimeFormat")}} + +### WebAssembly + +- {{JSxRef("WebAssembly")}} +- {{JSxRef("WebAssembly.Module")}} +- {{JSxRef("WebAssembly.Instance")}} +- {{JSxRef("WebAssembly.Memory")}} +- {{JSxRef("WebAssembly.Table")}} +- {{JSxRef("WebAssembly.CompileError")}} +- {{JSxRef("WebAssembly.LinkError")}} +- {{JSxRef("WebAssembly.RuntimeError")}} + +## Sentencias + +[Declaraciones y sentencias en JavaScript](/es/docs/Web/JavaScript/Reference/Statements) + +### Control de flujo + +- {{jsxref("Statements/block", "Block", "", 1)}} +- {{jsxref("Statements/Empty", "Empty statement", "", 1)}} +- {{jsxref("Statements/break", "break")}} +- {{jsxref("Statements/continue", "continue")}} +- {{jsxref("Statements/if...else", "if...else")}} +- {{jsxref("Statements/switch", "switch")}} +- {{jsxref("Statements/throw", "throw")}} +- {{jsxref("Statements/try...catch", "try...catch")}} + +### Declaraciones + +- {{jsxref("Statements/var", "var")}} +- {{jsxref("Statements/let", "let")}} +- {{jsxref("Statements/const", "const")}} + +### Funciones y clases + +- {{jsxref("Statements/function", "function")}} +- {{jsxref("Statements/function*", "function*")}} +- {{jsxref("Statements/async_function", "async function")}} +- {{jsxref("Statements/return", "return")}} +- {{jsxref("Statements/class", "class")}} + +### Iteraciones + +- {{jsxref("Statements/do...while", "do...while")}} +- {{jsxref("Statements/for", "for")}} +- {{jsxref("Statements/for...in", "for...in")}} +- {{jsxref("Statements/for...of", "for...of")}} +- {{jsxref("Statements/for-await...of", "for await...of")}} +- {{jsxref("Statements/while", "while")}} + +### Otros + +- {{jsxref("Statements/debugger", "debugger")}} +- {{jsxref("Statements/export", "export")}} +- {{jsxref("Statements/import", "import")}} +- {{jsxref("Statements/label", "label")}} +- {{jsxref("Statements/with", "with")}} + +## Operadores y expresiones + +[Operadores y expresiones en JavaScript](/es/docs/Web/JavaScript/Reference/Operators). + +### Expresiones primarias + +- {{JSxRef("Operators/this", "this")}} +- {{JSxRef("Operators/function", "function")}} +- {{JSxRef("Operators/class", "class")}} +- {{JSxRef("Operators/function*", "function*")}} +- {{JSxRef("Operators/yield", "yield")}} +- {{JSxRef("Operators/yield*", "yield*")}} +- {{JSxRef("Operators/async_function", "async function")}} +- {{JSxRef("Operators/await", "await")}} +- {{JSxRef("Global_Objects/Array", "[]")}} +- {{JSxRef("Operators/Object_initializer", "{}")}} +- {{JSxRef("Global_Objects/RegExp", "/ab+c/i")}} +- {{JSxRef("Operators/Grouping", "( )")}} +- {{JSxRef("null")}} + +### Expresiones del lado izquierdo + +- {{JSxRef("Operators/Property_accessors", "Property accessors", "", 1)}} +- {{JSxRef("Operators/Optional_chaining", "<code>?.</code> (Optional chaining)", "", 1)}} +- {{JSxRef("Operators/new", "new")}} +- {{JSxRef("Operators/new%2Etarget", "new.target")}} +- {{JSxRef("Statements/import%2Emeta", "import.meta")}} +- {{JSxRef("Operators/super", "super")}} +- {{JSxRef("Operators/Spread_syntax", "...obj")}} + +### Incremento y decremento + +- {{JSxRef("Operators/Increment", "A++")}} +- {{JSxRef("Operators/Decrement", "A--")}} +- {{JSxRef("Operators/Increment", "++A")}} +- {{JSxRef("Operators/Decrement", "--A")}} + +### Operadores unarios + +- {{JSxRef("Operators/delete", "delete")}} +- {{JSxRef("Operators/void", "void")}} +- {{JSxRef("Operators/typeof", "typeof")}} +- {{JSxRef("Operators/Unary_plus", "+")}} +- {{JSxRef("Operators/Unary_negation", "-")}} +- {{JSxRef("Operators/Bitwise_NOT", "~")}} +- {{JSxRef("Operators/Logical_NOT", "!")}} + +### Operadores aritméticos + +- {{JSxRef("Operators/Addition", "+")}} +- {{JSxRef("Operators/Subtraction", "-")}} +- {{JSxRef("Operators/Division", "/")}} +- {{JSxRef("Operators/Multiplication", "*")}} +- {{JSxRef("Operators/Remainder", "%")}} +- {{JSxRef("Operators/Exponentiation", "**")}} + +### Operadores relacionales + +- {{JSxRef("Operators/in", "in")}} +- {{JSxRef("Operators/instanceof", "instanceof")}} +- {{JSxRef("Operators/Less_than", "<")}} +- {{JSxRef("Operators/Greater_than", ">")}} +- {{JSxRef("Operators/Less_than_or_equal", "<=")}} +- {{JSxRef("Operators/Greater_than_or_equal", ">=")}} + +### Operadores de igualdad + +- {{JSxRef("Operators/Equality", "==")}} +- {{JSxRef("Operators/Inequality", "!=")}} +- {{JSxRef("Operators/Strict_equality", "===")}} +- {{JSxRef("Operators/Strict_inequality", "!==")}} + +### Operadores de desplazamiento bit a bit + +- {{JSxRef("Operators/Left_shift", "<<")}} +- {{JSxRef("Operators/Right_shift", ">>")}} +- {{JSxRef("Operators/Unsigned_right_shift", ">>>")}} + +### Operadores binarios bitwise + +- {{JSxRef("Operators/Bitwise_AND", "&")}} +- {{JSxRef("Operators/Bitwise_OR", "|")}} +- {{JSxRef("Operators/Bitwise_XOR", "^")}} + +### Operadores lógicos bitwise + +- {{JSxRef("Operators/Logical_AND", "&&")}} +- {{JSxRef("Operators/Logical_OR", "||")}} +- {{JSxRef("Operators/Nullish_coalescing_operator", "??")}} + +### Operador condicional (ternario) + +- {{JSxRef("Operators/Conditional_Operator", "(condition ? ifTrue : ifFalse)")}} + +### Operadores de asignación + +- {{JSxRef("Operators/Assignment", "=")}} +- {{JSxRef("Operators/Multiplication_assignment", "*=")}} +- {{JSxRef("Operators/Exponentiation_assignment", "**=")}} +- {{JSxRef("Operators/Division_assignment", "/=")}} +- {{JSxRef("Operators/Remainder_assignment", "%=")}} +- {{JSxRef("Operators/Addition_assignment", "+=")}} +- {{JSxRef("Operators/Subtraction_assignment", "-=")}} +- {{JSxRef("Operators/Left_shift_assignment", "<<=")}} +- {{JSxRef("Operators/Right_shift_assignment", ">>=")}} +- {{JSxRef("Operators/Unsigned_right_shift_assignment", ">>>=")}} +- {{JSxRef("Operators/Bitwise_AND_assignment", "&=")}} +- {{JSxRef("Operators/Bitwise_XOR_assignment", "^=")}} +- {{JSxRef("Operators/Bitwise_OR_assignment", "|=")}} +- {{JSxRef("Operators/Logical_AND_assignment", "&&=")}} +- {{JSxRef("Operators/Logical_OR_assignment", "||=")}} +- {{JSxRef("Operators/Logical_nullish_assignment", "??=")}} +- {{JSxRef("Operators/Destructuring_assignment", "[a, b] = [1, 2]")}} +- {{JSxRef("Operators/Destructuring_assignment", "{a, b} = {a:1, b:2}")}} + +### Operador coma + +- {{JSxRef("Operators/Comma_Operator", ",")}} + +## Funciones + +Este capítulo documenta como trabajar con las [Funciones JavaScript](/es/docs/Web/JavaScript/Reference/Functions) para desarrollar tus aplicaciones. + +- [`argumentos`](/es/docs/Web/JavaScript/Reference/Functions/arguments) +- [Funciones flecha](/es/docs/Web/JavaScript/Reference/Functions/Arrow_functions) +- [Parámetros por defecto](/es/docs/Web/JavaScript/Reference/Functions/Default_parameters) +- [Parámetros rest](/es/docs/Web/JavaScript/Reference/Functions/rest_parameters) + +## Páginas adicionales de referencia + +- [Gramática léxica](/es/docs/Web/JavaScript/Reference/Lexical_grammar) +- [Tipos de datos y estructuras](/es/docs/Web/JavaScript/Data_structures) +- [Modo estricto](/es/docs/Web/JavaScript/Reference/Strict_mode) +- [Características en desuso y obsoletas](/es/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features) |