{"json_modified": "2015-04-26T06:31:32.220483", "slug": "Web/JavaScript/Referencia/Sentencies/function", "tags": [], "locale": "ca", "title": "function", "translations": [{"title": "function", "url": "/en-US/docs/Web/JavaScript/Reference/Statements/function", "tags": ["Statement", "JavaScript"], "summary": "The function declaration defines a function with the specified parameters.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-12T05:31:06", "review_tags": []}, {"title": "function", "url": "/pl/docs/Web/JavaScript/Referencje/Polecenia/function", "tags": ["Dokumentacja_JavaScript", "JavaScript", "Dokumentacje", "Wszystkie_kategorie"], "summary": "", "localization_tags": [], "locale": "pl", "last_edit": "2014-05-31T00:08:18", "review_tags": []}, {"title": "function", "url": "/ja/docs/Web/JavaScript/Reference/Statements/function", "tags": [], "summary": "\u6307\u5b9a\u3055\u308c\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u95a2\u6570\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-17T00:29:41", "review_tags": []}, {"title": "function", "url": "/es/docs/Web/JavaScript/Referencia/Sentencias/function", "tags": ["Statement", "JavaScript"], "summary": "Declara una funci\u00f3n con los par\u00e1metros especificados.", "localization_tags": [], "locale": "es", "last_edit": "2014-11-19T12:00:38", "review_tags": []}, {"title": "function", "url": "/fr/docs/Web/JavaScript/Reference/Instructions/function", "tags": ["R\u00e9ference", "R\u00e9f\u00e9rence", "Reference", "Statement", "JavaScript"], "summary": "La d\u00e9claration function
permet de d\u00e9finir une fonction et les param\u00e8tres que celle-ci utilise.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-13T13:01:10", "review_tags": []}, {"title": "function", "url": "/zh-CN/docs/Web/JavaScript/Reference/Statements/function", "tags": ["\u51fd\u6570"], "summary": "\u51fd\u6570\u58f0\u660e\u7528\u6307\u5b9a\u7684\u53c2\u6570\u58f0\u660e\u4e00\u4e2a\u51fd\u6570\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-01-27T18:42:10", "review_tags": []}], "modified": "2015-04-26T06:31:29", "label": "function", "localization_tags": [], "url": "/ca/docs/Web/JavaScript/Referencia/Sentencies/function", "last_edit": "2015-04-26T06:30:32", "summary": "La declaraci\u00f3 d'una funci\u00f3 defineix una funci\u00f3 amb uns par\u00e0metres especificats.", "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 Objectes Standard Array [Translate] ArrayBuffer [Translate] Boolean DataView [Translate] Date Error EvalError [Translate] Float32Array [Translate] Float64Array [Translate] Function [Translate] Generator [Translate] GeneratorFunction [Translate] Infinity Int16Array [Translate] Int32Array [Translate] Int8Array [Translate] InternalError [Translate] Intl [Translate] Intl.Collator [Translate] Intl.DateTimeFormat [Translate] Intl.NumberFormat [Translate] Iterator [Translate] JSON Map Math NaN Number Object [Translate] ParallelArray [Translate] Promise [Translate] Proxy [Translate] RangeError [Translate] ReferenceError [Translate] Reflect [Translate] RegExp [Translate] SIMD [Translate] Set [Translate] StopIteration [Translate] String Symbol [Translate] SyntaxError [Translate] TypeError [Translate] TypedArray [Translate] URIError [Translate] Uint16Array [Translate] Uint32Array [Translate] Uint8Array [Translate] Uint8ClampedArray [Translate] WeakMap [Translate] WeakSet [Translate] decodeURI() [Translate] decodeURIComponent() [Translate] encodeURI() [Translate] encodeURIComponent() [Translate] escape() [Translate] eval() [Translate] isFinite() [Translate] isNaN() [Translate] null parseFloat() [Translate] parseInt() [Translate] undefined unescape() [Translate] uneval() [Translate] Expressions & operators Expressions and operators Operadors aritm\u00e8tics Array comprehensions [Translate] Assignment operators Operadors de bits Operador Coma Comparison operators [Translate] Operador Condicional (ternari) Destructuring assignment [Translate] Expression closures [Translate] Generator comprehensions [Translate] Operador d'agrupament Legacy generator function expression [Translate] Operadors L\u00f2gics Object initializer [Translate] Operator precedence [Translate] Property accessors [Translate] Spread operator [Translate] class expression [Translate] Operador delete function expression [Translate] function* expression [Translate] in operator [Translate] instanceof [Translate] new operator [Translate] super this [Translate] typeof L'operador void yield yield* [Translate] Statements & declarations Statements and declarations Legacy generator function [Translate] block break [Translate] class [Translate] const [Translate] continue [Translate] debugger [Translate] do...while [Translate] Buida export [Translate] for for each...in [Translate] for...in [Translate] for...of function function* [Translate] if...else import [Translate] label [Translate] let [Translate] return switch [Translate] throw [Translate] try...catch [Translate] var [Translate] while with [Translate] Functions Functions [Translate] Arguments object [Translate] Arrow functions [Translate] Default parameters [Translate] Method definitions [Translate] Rest parameters [Translate] getter [Translate] setter [Translate] Classes Classes constructor extends [Translate] 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 New in JavaScript [Translate] ECMAScript 5 support in Mozilla [Translate] ECMAScript 6 support in Mozilla [Translate] ECMAScript 7 support in Mozilla [Translate] Firefox JavaScript changelog [Translate] New in JavaScript 1.1 [Translate] New in JavaScript 1.2 [Translate] New in JavaScript 1.3 [Translate] New in JavaScript 1.4 [Translate] New in JavaScript 1.5 [Translate] New in JavaScript 1.6 [Translate] New in JavaScript 1.7 [Translate] New in JavaScript 1.8 [Translate] New in JavaScript 1.8.1 [Translate] New in JavaScript 1.8.5 [Translate] Documentation: Useful lists All pages index Methods index Properties index Pages tagged \"JavaScript\" Contribute JavaScript doc status The MDN project"}, {"id": "Resum", "title": "Resum"}, {"id": "Syntax", "title": "Sintaxi"}, {"id": "Description", "title": "Descripci\u00f3"}, {"id": "Funcions_creades_de_forma_condicional", "title": "Funcions creades de forma condicional"}, {"id": "Declarar_les_funcions_abans_de_definir-les_(hosting)", "title": "Declarar les funcions abans de definir-les (hosting)"}, {"id": "Exemples", "title": "Exemples"}, {"id": "Exemple.3A_Fer_servir_function", "title": "Exemple: Fer servir function"}, {"id": "Especificacions", "title": "Especificacions"}, {"id": "Compatibilitat_amb_navegadors", "title": "Compatibilitat amb navegadors"}, {"id": "See_also", "title": "Vegeu tamb\u00e9"}], "id": 146279, "review_tags": []}