{"json_modified": "2016-01-22T14:33:47.702583", "slug": "Web/JavaScript/Guida/Functions", "tags": [], "locale": "it", "title": "Funzioni", "translations": [{"title": "Functions", "url": "/en-US/docs/Web/JavaScript/Guide/Functions", "tags": ["Guide", "Functions", "Beginner", "JavaScript"], "summary": "Functions are one of the fundamental building blocks in JavaScript. A function is a JavaScript procedure\u2014a set of statements that performs a task or calculates a value. To use a function, you must define it somewhere in the scope from which you wish to call it.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-12-11T22:47:26", "review_tags": []}, {"title": "\u95a2\u6570", "url": "/ja/docs/Web/JavaScript/Guide/Functions", "tags": ["Functions", "NeedsMarkupWork", "JavaScript"], "summary": "\u95a2\u6570\u306f JavaScript \u306e\u57fa\u672c\u7684\u306a\u69cb\u6210\u8981\u7d20\u306e\u3072\u3068\u3064\u3067\u3059\u3002\u307e\u305f\u95a2\u6570\u306f\u3001JavaScript \u306e\u624b\u7d9a\u304d \u2015 \u3064\u307e\u308a\u3001\u30bf\u30b9\u30af\u3084\u5024\u8a08\u7b97\u3092\u5b9f\u884c\u3059\u308b\u6587\u306e\u96c6\u307e\u308a\u3067\u3059\u3002\u95a2\u6570\u3092\u4f7f\u3046\u306b\u306f\u3001\u547c\u3073\u51fa\u3057\u305f\u3044\u30b9\u30b3\u30fc\u30d7\u5185\u306e\u3069\u3053\u304b\u3067\u305d\u308c\u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-10-10T22:55:37", "review_tags": ["technical", "editorial"]}, {"title": "\u0424\u0443\u043d\u043a\u0446\u0438\u0438", "url": "/ru/docs/Web/JavaScript/Guide/Functions", "tags": ["\u041e\u0441\u043d\u043e\u0432\u044b", "\u0424\u0443\u043d\u043a\u0446\u0438\u0438"], "summary": "\u0424\u0443\u043d\u043a\u0446\u0438\u0438 - \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u044f\u00a0\u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f\u00a0\u0432 JavaScript.\u00a0\u0412\u0430\u0436\u043d\u0435\u0439\u0448\u0435\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u044f\u0437\u044b\u043a\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u043a\u043b\u0430\u0441\u0441\u043d\u0430\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439\u200b (functions as first-class citizen).\u00a0\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 JavaScript \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f\u00a0\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u0432\u044b\u0441\u0448\u0435\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430: \u043b\u044e\u0431\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442, \u0438 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u00a0\u0438\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438. \u0412\u00a0\u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438:", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2016-01-22T13:51:21", "review_tags": ["editorial"]}, {"title": "\u51fd\u6570", "url": "/zh-CN/docs/Web/JavaScript/Guide/Functions", "tags": ["\u521d\u5b66\u8005", "\u51fd\u6570", "Javascript", "\u6559\u7a0b", "JavaScript"], "summary": "\u51fd\u6570\u662f\u642d\u5efaJavaScript\u5757\u7684\u57fa\u672c\u6784\u4ef6\u4e4b\u4e00\u3002\u4e00\u4e2a\u51fd\u6570\u672c\u8eab\u5c31\u662f\u4e00\u6bb5JavaScript\u7a0b\u5e8f\u2014\u2014\u5305\u542b\u7528\u4e8e\u6267\u884c\u67d0\u4e00\u4efb\u52a1\u6216\u8ba1\u7b97\u7684\u4e00\u7cfb\u5217\u8bed\u53e5\u3002\u8981\u4f7f\u7528\u67d0\u4e00\u4e2a\u51fd\u6570\uff0c\u4f60\u5fc5\u9700\u5728\u60f3\u8981\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570\u7684\u6267\u884c\u57df\u7684\u67d0\u5904\u5b9a\u4e49\u5b83\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2016-01-19T22:02:11", "review_tags": []}, {"title": "Funktionen", "url": "/de/docs/Web/JavaScript/Guide/Funktionen", "tags": ["Guide", "Beginner", "JavaScript"], "summary": "Functions are one of the fundamental building blocks in JavaScript. A function is a JavaScript procedure\u2014a set of statements that performs a task or calculates a value. To use a function, you must define it somewhere in the scope from which you wish to call it.", "localization_tags": ["inprogress"], "locale": "de", "last_edit": "2015-04-22T04:16:02", "review_tags": []}, {"title": "Funciones", "url": "/es/docs/Web/JavaScript/Guide/Funciones", "tags": ["Funciones", "Principiante", "Gu\u00eda", "JavaScript"], "summary": "Las funciones son uno de los pilares fundamentales en JavaScript. Una funci\u00f3n es un procedimiento JavaScript\u2014un conjunto de declaraciones que realiza una tarea o calcula un valor. Para usar una funci\u00f3n, debes definirla en alg\u00fan lugar del \u00e1mbito desde el cual deseas llamarla.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2015-11-16T10:19:50", "review_tags": []}, {"title": "Fonctions", "url": "/fr/docs/Web/JavaScript/Guide/Fonctions", "tags": ["Guide", "Functions", "Beginner", "JavaScript"], "summary": "Les fonctions font partie des briques fondamentales de JavaScript. Une fonction est une proc\u00e9dure JavaScript, un ensemble d'instructions effectuant une t\u00e2che ou calculant une valeur. Afin d'utiliser une fonction, il est n\u00e9cessaire de l'avoir auparavant d\u00e9finie au sein de la port\u00e9e dans laquelle on souhaite l'appeler.", "localization_tags": [], "locale": "fr", "last_edit": "2015-12-12T00:33:19", "review_tags": []}, {"title": "\u09ab\u09be\u0982\u09b6\u09a8", "url": "/bn-BD/docs/Web/JavaScript/Guide/Functions", "tags": ["Guide", "JavaScript"], "summary": "\u09ab\u09be\u0982\u09b6\u09a8 \u09b9\u099a\u09cd\u099b\u09c7 \u099c\u09be\u09ad\u09be\u09b8\u09cd\u0995\u09cd\u09b0\u09bf\u09aa\u09cd\u099f\u09c7\u09b0 \u0985\u09a8\u09cd\u09af\u09a4\u09ae \u09ac\u09bf\u09b2\u09cd\u09a1\u09bf\u0982 \u09ac\u09cd\u09b2\u0995\u0964 \u09ab\u09be\u0982\u09b6\u09a8 \u09b9\u099a\u09cd\u099b\u09c7\u0983 \u0995\u09bf\u099b\u09c1 \u09b8\u09cd\u099f\u09c7\u099f\u09ae\u09c7\u09a8\u09cd\u099f \u09af\u09c7\u0997\u09c1\u09b2\u09cb execute \u09b9\u09ac\u09c7, \u09af\u09be\u09b0 \u09ae\u09be\u09a7\u09cd\u09af\u09ae\u09c7 \u0986\u09aa\u09a8\u09bf \u0995\u09cb\u09a8 \u0995\u09be\u099c \u0995\u09b0\u09ac\u09c7\u09a8 \u0985\u09a5\u09ac\u09be \u0995\u09cb\u09a8 \u09ae\u09be\u09a8 \u09a8\u09bf\u09b0\u09cd\u09a3\u09df \u0995\u09b0\u09ac\u09c7\u09a8\u0964 \u09ab\u09be\u0982\u09b6\u09a8 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u0986\u09aa\u09a8\u09bf \u09af\u09c7\u0987 \u09b8\u09cd\u0995\u09cb\u09aa \u09a5\u09c7\u0995\u09c7 \u09ab\u09be\u0982\u09b6\u09a8 \u0995\u09b2 \u0995\u09b0\u09ac\u09c7\u09a8, \u09b8\u09c7\u0996\u09be\u09a8\u09c7 \u09ab\u09be\u0982\u09b6\u09a8\u099f\u09bf \u09b2\u09bf\u0996\u09a4\u09c7 \u09b9\u09ac\u09c7 (\u09a1\u09bf\u09ab\u09be\u0987\u09a8 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7)\u0964", "localization_tags": ["inprogress"], "locale": "bn-BD", "last_edit": "2015-04-26T05:04:04", "review_tags": []}, {"title": "\u51fd\u5f0f", "url": "/zh-TW/docs/Web/JavaScript/Guide/Functions", "tags": [], "summary": "\u51fd\u5f0f\u662f\u69cb\u6210javascript\u7684\u57fa\u672c\u8981\u7d20\u4e4b\u4e00\u3002\u4e00\u500b\u51fd\u5f0f\u672c\u8eab\u5c31\u662f\u4e00\u6bb5JavaScript\u7a0b\u5e8f\u2014\u5305\u542b\u7528\u65bc\u57f7\u884c\u67d0\u4e00\u500b\u4efb\u52d9\u6216\u8a08\u7b97\u7684\u8a9e\u6cd5\u3002\u8981\u547c\u53eb\u67d0\u4e00\u500b\u51fd\u5f0f\u4e4b\u524d\uff0c\u4f60\u5fc5\u9700\u5148\u5728\u9019\u500b\u51fd\u5f0f\u6b32\u57f7\u884c\u7684scope\u4e2d\u5b9a\u7fa9\u5b83\u3002", "localization_tags": [], "locale": "zh-TW", "last_edit": "2014-07-04T07:14:09", "review_tags": []}, {"title": "Functions", "url": "/th/docs/Web/JavaScript/Guide/Functions", "tags": [], "summary": "\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19\u0e40\u0e1b\u0e47\u0e19\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\u0e2b\u0e25\u0e31\u0e01\u0e02\u0e2d\u0e07\u0e08\u0e32\u0e27\u0e32\u0e2a\u0e04\u0e23\u0e34\u0e1b\u0e15\u0e4c \u0e2b\u0e19\u0e36\u0e48\u0e07\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19\u0e04\u0e37\u0e2d\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e01\u0e23\u0e30\u0e1a\u0e27\u0e19\u0e01\u0e32\u0e23\u0e02\u0e2d\u0e07\u0e08\u0e32\u0e27\u0e32\u0e2a\u0e04\u0e23\u0e34\u0e1b\u0e15\u0e4c \u0e0b\u0e36\u0e48\u0e07\u0e01\u0e47\u0e04\u0e37\u0e2d\u0e0a\u0e38\u0e14\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e17\u0e35\u0e48\u0e17\u0e33\u0e07\u0e32\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e04\u0e33\u0e19\u0e27\u0e13\u0e04\u0e48\u0e32 \u0e42\u0e14\u0e22\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e43\u0e0a\u0e49\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19\u0e17\u0e35\u0e48\u0e43\u0e14\u0e01\u0e47\u0e44\u0e14\u0e49\u0e20\u0e32\u0e22\u0e43\u0e19\u0e02\u0e2d\u0e1a\u0e40\u0e02\u0e15\u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49", "localization_tags": ["inprogress"], "locale": "th", "last_edit": "2014-04-02T01:38:09", "review_tags": []}, {"title": "Fun\u00e7\u00f5es", "url": "/pt-BR/docs/Web/JavaScript/Guide/Fun%C3%A7%C3%B5es", "tags": ["Fun\u00e7\u00f5es JavaScript", "Javascript", "Guia", "Iniciante", "JavaScript"], "summary": "Fun\u00e7\u00f5es s\u00e3o blocos de constru\u00e7\u00e3o fundamentais em JavaScript. Uma fun\u00e7\u00e3o \u00e9 um procedimento de JavaScript - um conjunto de instru\u00e7\u00f5es\u00a0que executa uma tarefa ou calcula um valor. Para usar uma fun\u00e7\u00e3o, voc\u00ea deve defini-la em algum lugar no \u00e2mbito do qual voc\u00ea quiser cham\u00e1-la.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2016-01-11T07:55:11", "review_tags": ["editorial"]}, {"title": "Funcions", "url": "/ca/docs/Web/JavaScript/Guide/Functions", "tags": [], "summary": "Les funcions s\u00f3n uns dels\u00a0blocs de construcci\u00f3 elementals en\u00a0JavaScript. Una funci\u00f3 \u00e9s un procediment de JavaScript\u2014un conjunt de sent\u00e8ncies que performa una tasca o\u00a0calcula un valor. Per tal de fer servir una funci\u00f3,\u00a0primer s'ha de defnir en alguna part de l'\u00e1mbit en que es vol cridar.", "localization_tags": [], "locale": "ca", "last_edit": "2015-04-26T06:11:05", "review_tags": []}, {"title": "\ud568\uc218", "url": "/ko/docs/Web/JavaScript/Guide/%ED%95%A8%EC%88%98", "tags": [], "summary": "\ud568\uc218\ub294 JavaScript\uc5d0\uc11c \uae30\ubcf8\uc801\uc778 \ube4c\ub529 \ube14\ub85d \uc911\uc758 \ud558\ub098\uc785\ub2c8\ub2e4. \ud568\uc218\ub294 \uc791\uc5c5\uc744 \uc218\ud589\ud558\uac70\ub098 \uac12\uc744 \uacc4\uc0b0\ud558\ub294 \ubb38\uc7a5\uc758 \uc9d1\ud569\uacfc \uac19\uc740 \uc790\ubc14\uc2a4\ud2b8\ub9bd\ud2b8 \uc808\ucc28\uc785\ub2c8\ub2e4. \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 \ud568\uc218\ub97c \ud638\ucd9c\ud558\uace0\uc790 \ud558\ub294 \ubc94\uc704 \uc5b4\ub518\uac00\uc5d0\u00a0\ud568\uc218\ub97c \uc815\uc758\ud574\uc57c\ub9cc \ud569\ub2c8\ub2e4.", "localization_tags": ["inprogress"], "locale": "ko", "last_edit": "2015-10-11T19:39:25", "review_tags": []}, {"title": "Funkcje", "url": "/pl/docs/Web/JavaScript/Guide/Funkcje", "tags": [], "summary": "Funkcje s\u0105 jednym z podstawowych 'klock\u00f3w' JavaScriptu. Funkcja jest zbiorem wyra\u017ce\u0144, kt\u00f3re wykonuj\u0105 jakie\u015b zadanie, b\u0105d\u017a obliczaj\u0105 warto\u015b\u0107. Aby u\u017cy\u0107 funkcji, musisz najpierw zdefiniowa\u0107 j\u0105 gdzie\u015b w zasi\u0119gu, z kt\u00f3rego zostanie wywo\u0142ana.", "localization_tags": ["inprogress"], "locale": "pl", "last_edit": "2015-12-14T01:28:22", "review_tags": ["technical", "editorial"]}, {"title": "Functions", "url": "/my/docs/Web/JavaScript/Guide/Functions", "tags": ["Functions", "Beginner", "Guide", "Myanmar", "JavaScript"], "summary": "Functions are one of the fundamental building blocks in JavaScript. A function is a JavaScript procedure\u2014a set of statements that performs a task or calculates a value. To use a function, you must define it somewhere in the scope from which you wish to call it.", "localization_tags": ["inprogress"], "locale": "my", "last_edit": "2015-08-17T01:07:37", "review_tags": []}, {"title": "Functions", "url": "/vi/docs/Web/JavaScript/Guide/Functions", "tags": [], "summary": "Functions are one of the fundamental building blocks in JavaScript. A function is a JavaScript procedure\u2014a set of statements that performs a task or calculates a value. To use a function, you must define it somewhere in the scope from which you wish to call it.", "localization_tags": ["inprogress"], "locale": "vi", "last_edit": "2015-09-25T09:13:51", "review_tags": []}], "modified": "2016-01-22T14:33:42", "label": "Funzioni", "localization_tags": ["inprogress"], "url": "/it/docs/Web/JavaScript/Guida/Functions", "last_edit": "2016-01-22T14:33:34", "summary": "Le funzioni sono tra i blocchi di programmazione fondamentali in JavaScript. Una funzione \u00e8 una procedura JavaScript \u2014 un gruppo di istruzioni ( statement ) che esegue un compito o calcola un valore. Per usare una funzione, occorre definirla, all'interno dello scope dal quale la si invocher\u00e0.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Definire_una_funzione", "title": "Definire una funzione"}, {"id": "Dichiarazioni_di_funzione", "title": "Dichiarazioni di funzione"}, {"id": "Espressioni_di_funzione", "title": "Espressioni di funzione"}, {"id": "Chiamare_(_invocare_)_una_funzione", "title": "Chiamare ( invocare ) una funzione"}, {"id": "Lo_scope_di_una_funzione", "title": "Lo scope di una funzione"}, {"id": "Scope_e_lo_stack_della_funzione", "title": "Scope e lo stack della funzione"}, {"id": "Ricorsione", "title": "Ricorsione"}, {"id": "Funzioni_annidate_e_chiusure", "title": "Funzioni annidate e chiusure"}, {"id": "Persistenza_delle_variabili", "title": "Persistenza delle variabili"}, {"id": "Funzioni_annidate_multiple", "title": "Funzioni annidate multiple"}, {"id": "Conflitti_tra_nomi", "title": "Conflitti tra nomi"}, {"id": "Chiusure", "title": "Chiusure"}, {"id": "Usare_l'oggetto_arguments", "title": "Usare l'oggetto arguments"}, {"id": "I_parametri_di_una_funzione", "title": "I parametri di una funzione"}, {"id": "I_parametri_di_default", "title": "I parametri di default"}, {"id": "I_parametri_Rest", "title": "I parametri Rest"}, {"id": "Le_funzioni_a_freccia", "title": "Le funzioni a freccia"}, {"id": "Funzioni_pi\u00f9_brevi", "title": "Funzioni pi\u00f9 brevi"}, {"id": "Il_this_lessicale", "title": "Il "}, {"id": "Predefined_functions", "title": "Predefined functions"}], "id": 171893, "review_tags": []}