--- 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", "?. (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)