{"json_modified": "2015-10-10T22:55:48.643300", "slug": "Web/JavaScript/Guide/Functions", "tags": ["MDC Project", "Functions", "NeedsMarkupWork", "JavaScript"], "locale": "ja", "title": "\u95a2\u6570", "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-10-09T11:10:30", "review_tags": []}, {"title": "\u0424\u0443\u043d\u043a\u0446\u0438\u0438", "url": "/ru/docs/Web/JavaScript/Guide/Functions", "tags": [], "summary": "\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 JavaScript. \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u044d\u0442\u043e JavaScript \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0441\u043e\u0431\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u043a\u0430\u043a\u043e\u0435 \u043b\u0438\u0431\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0438\u043b\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0427\u0442\u043e\u0431\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u0442\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0433\u0434\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0435\u0435.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2015-09-28T17:20:10", "review_tags": ["editorial"]}, {"title": "\u51fd\u6570", "url": "/zh-CN/docs/Web/JavaScript/Guide/Functions", "tags": ["\u51fd\u6570", "JavaScript"], "summary": "\u51fd\u6570\u662f\u642d\u5efaJavaScript\u8bed\u8a00\u5927\u53a6\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": "2015-06-25T01:37:49", "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": [], "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-07-15T18:29: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-10-10T01:27:14", "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": [], "summary": "As fun\u00e7\u00f5es s\u00e3o um dos alicerces fundamentais para o JavaScript. Uma fun\u00e7\u00e3o \u00e9 um procedimento de um conjunto de instru\u00e7\u00f5es JavaScript, que 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": ["inprogress"], "locale": "pt-BR", "last_edit": "2015-10-05T12:34:09", "review_tags": []}, {"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-05-28T05:40:18", "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-08-13T07:49:39", "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": "2015-10-10T22:55:43", "label": "\u95a2\u6570", "localization_tags": [], "url": "/ja/docs/Web/JavaScript/Guide/Functions", "last_edit": "2015-10-10T22:55:37", "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", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Defining_functions", "title": "\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b"}, {"id": "Function_declarations", "title": "\u95a2\u6570\u306e\u5ba3\u8a00"}, {"id": "Function_expressions", "title": "\u95a2\u6570\u5f0f"}, {"id": "Calling_functions", "title": "\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059"}, {"id": "Function_scope", "title": "\u95a2\u6570\u306e\u30b9\u30b3\u30fc\u30d7"}, {"id": "Scope_and_the_function_stack", "title": "\u30b9\u30b3\u30fc\u30d7\u3068\u95a2\u6570\u30b9\u30bf\u30c3\u30af"}, {"id": "Recursion", "title": "\u518d\u5e30"}, {"id": "Nested_functions_and_closures", "title": "\u5165\u308c\u5b50\u306e\u95a2\u6570\u3068\u30af\u30ed\u30fc\u30b8\u30e3"}, {"id": "Preservation_of_variables", "title": "\u5909\u6570\u306e\u4fdd\u8b77"}, {"id": "Multiply-nested_functions", "title": "\u591a\u91cd\u5165\u308c\u5b50\u95a2\u6570"}, {"id": "Name_conflicts", "title": "\u540d\u524d\u885d\u7a81"}, {"id": "Closures", "title": "\u30af\u30ed\u30fc\u30b8\u30e3"}, {"id": "Using_the_arguments_object", "title": "arguments \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f7f\u7528"}, {"id": "Function_parameters", "title": "\u95a2\u6570\u306e\u4eee\u5f15\u6570"}, {"id": "Default_parameters", "title": "\u30c7\u30d5\u30a9\u30eb\u30c8\u4eee\u5f15\u6570"}, {"id": "Rest_parameters", "title": "\u6b8b\u4f59\u4eee\u5f15\u6570"}, {"id": "Arrow_functions", "title": "\u30a2\u30ed\u30fc\u95a2\u6570"}, {"id": "Shorter_functions", "title": "\u77ed\u7e2e\u5f62\u306e\u95a2\u6570"}, {"id": "Lexical_this", "title": "\u30ec\u30ad\u30b7\u30ab\u30eb\u306a "}, {"id": "\u5b9a\u7fa9\u6e08\u307f\u95a2\u6570", "title": "\u5b9a\u7fa9\u6e08\u307f\u95a2\u6570"}], "id": 15637, "review_tags": ["technical", "editorial"]}