{"json_modified": "2015-04-26T08:11:22.502780", "slug": "Web/JavaScript/Closures", "tags": ["Closures", "Guia", "Gu\u00eda", "JavaScript"], "locale": "es", "title": "Closures", "translations": [{"title": "Closures", "url": "/en-US/docs/Web/JavaScript/Closures", "tags": ["Closure", "Intermediate", "JavaScript"], "summary": "Closures are functions that refer to independent (free) variables.\u00a0In other words, the function defined in the closure 'remembers' the environment in which it was created.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-22T02:55:42", "review_tags": []}, {"title": "\u95ed\u5305\uff08Closures\uff09", "url": "/zh-CN/docs/Web/JavaScript/Guide/Closures", "tags": ["\u8fdb\u9636", "\u95ed\u5305", "\u6307\u5357", "JavaScript"], "summary": "\u95ed\u5305\u662f\u6307\u51fd\u6570\u6709\u81ea\u7531\u72ec\u7acb\u7684\u53d8\u91cf\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u5b9a\u4e49\u5728\u95ed\u5305\u4e2d\u7684\u51fd\u6570\u53ef\u4ee5\u201c\u8bb0\u5fc6\u201d\u5b83\u521b\u5efa\u65f6\u5019\u7684\u73af\u5883\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-04-17T11:36:47", "review_tags": []}, {"title": "\u30af\u30ed\u30fc\u30b8\u30e3", "url": "/ja/docs/Web/JavaScript/Closures", "tags": ["JavaScript"], "summary": "\u30af\u30ed\u30fc\u30b8\u30e3\u306f JavaScript \u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3068\u601d\u308f\u308c\u304c\u3061\u3067\u3059\u304c\u3001\u30af\u30ed\u30fc\u30b8\u30e3\u3092\u7406\u89e3\u3059\u308b\u4e8b\u306f JavaScript \u3092\u4f7f\u3044\u3053\u306a\u3059\u4e0a\u3067\u6b20\u304b\u305b\u307e\u305b\u3093\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2013-06-05T10:02:08", "review_tags": []}, {"title": "Closures", "url": "/pt-BR/docs/Web/JavaScript/Guide/Closures", "tags": [], "summary": "Closures (fechamentos) s\u00e3o fun\u00e7\u00f5es que se referem a vari\u00e1veis livres (independentes).", "localization_tags": [], "locale": "pt-BR", "last_edit": "2015-02-02T11:27:03", "review_tags": []}, {"title": "\ud074\ub85c\uc838(Closures)", "url": "/ko/docs/Web/JavaScript/Guide/Closures", "tags": [], "summary": "\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub97c \ubc30\uc6b0\ub824\ub294 \uc0ac\ub78c\ub4e4\uc5d0\uac8c \ud074\ub85c\uc838\ub294 \uc5b4\ub835\uac8c \ub290\uaef4\uc9c0\uc9c0\ub9cc \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub97c \uae4a\uac8c \uc54c\uae30 \uc704\ud574\uc11c \ubc18\ub4dc\uc2dc \ub118\uc5b4\uc57c\ud560 \uc0b0\uc774\ub2e4.", "localization_tags": [], "locale": "ko", "last_edit": "2014-07-06T09:18:24", "review_tags": []}, {"title": "Closures (Funktionsabschl\u00fcsse)", "url": "/de/docs/Web/JavaScript/Closures", "tags": [], "summary": "Closures are functions that refer to independent (free) variables. In other words, the function defined in the closure 'remembers' the environment in which it was created.", "localization_tags": ["inprogress"], "locale": "de", "last_edit": "2015-04-22T04:03:51", "review_tags": []}, {"title": "Closures (Fermetures)", "url": "/fr/docs/Web/JavaScript/Closures", "tags": ["Closure", "Intermediate", "JavaScript"], "summary": "Avec l'exemple suivant :", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-22T22:28:55", "review_tags": []}, {"title": "\u0417\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f", "url": "/ru/docs/Web/JavaScript/Closures", "tags": [], "summary": "\u0417\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0441\u0441\u044b\u043b\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 (\u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435) \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2015-04-22T06:56:30", "review_tags": []}, {"title": "Closures", "url": "/id/docs/Web/JavaScript/Panduan/Closures", "tags": [], "summary": "Closures are functions that refer to independent (free) variables.", "localization_tags": ["inprogress"], "locale": "id", "last_edit": "2014-10-24T00:25:42", "review_tags": []}], "modified": "2015-04-26T08:11:19", "label": "Closures", "localization_tags": [], "url": "/es/docs/Web/JavaScript/Closures", "last_edit": "2015-04-26T08:11:12", "summary": "Los closures son funciones que manejan variables independientes. En otras palabras, la funci\u00f3n definida en el closure \"recuerda\" el entorno en el que se ha creado.", "sections": [{"id": "Quick_Links", "title": "JavaScript Tutorials: JavaScript Guide Introduction Grammar and types Control flow and error handling Loops and iteration Functions Expressions and operators Numbers and dates Text formatting Regular expressions Indexed collections Keyed collections Working with objects Details of the object model Iterators and generators Meta programming Introductory JavaScript basics JavaScript technologies overview Introduction to Object Oriented JavaScript Intermediate A re-introduction to JavaScript JavaScript data structures Equality comparisons and sameness Closures Advanced Inheritance and the prototype chain Strict mode JavaScript typed arrays Memory Management Concurrency model and Event Loop References: Built-in objects Objetos globales Array ArrayBuffer [Traducir] Boolean DataView [Traducir] Date Error EvalError [Traducir] Float32Array [Traducir] Float64Array [Traducir] Function Generator [Traducir] GeneratorFunction [Traducir] Infinity Int16Array [Traducir] Int32Array [Traducir] Int8Array [Traducir] InternalError [Traducir] Intl [Traducir] Intl.Collator [Traducir] Intl.DateTimeFormat [Traducir] Intl.NumberFormat Iterator [Traducir] JSON Map Math NaN Number Object ParallelArray [Traducir] Promesa Proxy [Traducir] RangeError [Traducir] ReferenceError [Traducir] Reflect [Traducir] RegExp SIMD [Traducir] Set [Traducir] StopIteration [Traducir] String Symbol [Traducir] SyntaxError [Traducir] TypeError TypedArray [Traducir] URIError [Traducir] Uint16Array [Traducir] Uint32Array [Traducir] Uint8Array [Traducir] Uint8ClampedArray [Traducir] WeakMap WeakSet [Traducir] decodeURI() decodeURIComponent encodeURI encodeURIComponent escape() [Traducir] eval isFinite() isNaN null [Traducir] parseFloat parseInt() undefined unescape() [Traducir] uneval() [Traducir] Expressions & operators Operadores Aritm\u00e9ticos Array comprehensions [Traducir] Assignment operators [Traducir] Bitwise operators [Traducir] Comma operator [Traducir] Comparison operators [Traducir] Conditional (ternary) Operator [Traducir] Destructuring assignment [Traducir] Expression closures [Traducir] Generator comprehensions [Traducir] Grouping operator [Traducir] Legacy generator function expression [Traducir] Logical Operators [Traducir] Object initializer [Traducir] Precedencia de operadores Miembros Spread operator [Traducir] class expression [Traducir] operador delete function function* expression [Traducir] in instanceof new super [Traducir] this typeof void yield [Traducir] yield* [Traducir] Statements & declarations Sentencias Legacy generator function [Traducir] block break class [Traducir] const continue debugger [Traducir] do...while empty [Traducir] export for for each...in for...in for...of [Traducir] function function* [Traducir] if...else import [Traducir] label let [Traducir] return switch [Traducir] throw try...catch var while with [Traducir] Functions Funciones Objeto arguments Arrow functions [Traducir] Default parameters [Traducir] Method definitions [Traducir] Rest parameters [Traducir] get setter [Traducir] Classes Classes constructor [Traducir] extends [Traducir] static Misc Lexical grammar JavaScript data structures Enumerability and ownership of properties Iteration protocols Strict mode Transitioning to strict mode Template strings Deprecated features New in JavaScript Novedades en JavaScript ECMAScript 5 support in Mozilla [Traducir] ECMAScript 6 support in Mozilla ECMAScript 7 support in Mozilla [Traducir] Firefox JavaScript changelog [Traducir] New in JavaScript 1.1 [Traducir] New in JavaScript 1.2 [Traducir] New in JavaScript 1.3 [Traducir] New in JavaScript 1.4 [Traducir] Novedades en Javascript 1.5 Novedades en JavaScript 1.6 Novedades en JavaScript 1.7 Novedades en JavaScript 1.8 New in JavaScript 1.8.1 [Traducir] Novedades en JavaScript 1.8.5 Documentation: Useful lists All pages index Methods index Properties index Pages tagged \"JavaScript\" Contribute JavaScript doc status The MDN project"}, {"id": "Closures_pr.C3.A1cticos", "title": "Closures pr\u00e1cticos"}, {"id": "Emulando_m.C3.A9todos_privados_con_closures", "title": "Emulando m\u00e9todos privados con closures"}, {"id": "Creando_closures_en_loops.3A_Un_error_com.C3.BAn", "title": "Creando closures en loops: Un error com\u00fan"}, {"id": "Consideraciones_de_rendimiento", "title": "Consideraciones de rendimiento"}], "id": 58413, "review_tags": []}