{"json_modified": "2019-03-28T19:29:47.222317", "uuid": "b9860758-f77b-47cc-805f-1042b7594659", "title": "Function", "url": "/he/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": [], "translations": [{"uuid": "eaa54426-4af4-4816-8b35-1e80d0684f33", "title": "Function", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "JavaScript", "Function"], "summary": "The <strong><code>Function</code> constructor</strong> creates a new <code>Function</code> object. Calling the constructor directly can create functions dynamically, but suffers from\u00a0security and similar (but far less significant) performance issues to <a href=\"/en-US/docs/Web/JavaScript/Reference/eval\" title=\"REDIRECT eval()\"><code>eval</code></a>. However, unlike eval, the Function constructor creates functions which execute in the global scope only.", "localization_tags": [], "locale": "en-US", "last_edit": "2019-03-18T16:39:13.854142", "review_tags": ["technical", "editorial"]}, {"uuid": "eaa54426-4af4-4816-8b35-1e80d0684f33", "title": "Function", "url": "/ar/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "TopicStub", "Function", "NeedsTranslation", "JavaScript"], "summary": "The <strong><code>Function</code> constructor</strong> creates a new <code>Function</code> object. Calling the constructor directly can create functions dynamically, but suffers from\u00a0security and similar (but far less significant) performance issues similar to <a href=\"/ar/docs/Web/JavaScript/Reference/eval\" title=\"The documentation about this has not yet been written; please consider contributing!\"><code>eval</code></a>. However, unlike eval, the Function constructor allows executing code in the global scope, prompting better programming habits and allower for more efficient code minification.", "localization_tags": ["inprogress"], "locale": "ar", "last_edit": "2019-03-18T17:34:24.113460", "review_tags": []}, {"uuid": "9b913879-5dee-4e22-9df8-f5390e26d4f1", "title": "Function", "url": "/ca/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "TopicStub", "NeedsTranslation", "JavaScript", "Function"], "summary": "The <strong><code>Function</code> constructor</strong> creates a new <code>Function</code> object. In JavaScript every function is actually a <code>Function</code> object.", "localization_tags": ["inprogress"], "locale": "ca", "last_edit": "2019-03-23T18:47:58.147340", "review_tags": []}, {"uuid": "46938731-5ec5-4294-808f-2aa44c9545c3", "title": "Function", "url": "/de/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "Function", "JavaScript"], "summary": "Der <strong><code>Function</code> Konstruktor </strong>erstellt ein neues <code>Funktion</code> Objekt. Das direkte Aufrufen kann Funktionen dynamisch erstellen, hat aber Sicherheits- und Performanceprobleme genau wie der Einsatz von <a href=\"/de/docs/Web/JavaScript/Reference/Global_Objects/eval\" title=\"Die Methode eval()\u00a0(engl. to evaluate\u00a0= evaluieren, ausf\u00fchren) wertet einen String aus und f\u00fchrt ihn als JavaScript-Code aus.\"><code>eval</code></a>. Im Gegensatz zu <code>eval</code> erm\u00f6glicht der Function-Konstruktor die Ausf\u00fchrung von Code im globalen G\u00fcltigkeitsbereich, was zu besseren Programmiergewohnheiten f\u00fchrt und eine effizientere Code-Minimierung erm\u00f6glicht.", "localization_tags": [], "locale": "de", "last_edit": "2019-03-23T19:08:06.758718", "review_tags": []}, {"uuid": "a33e3afa-6776-4405-80e5-01f701761a11", "title": "Function", "url": "/es/docs/Web/JavaScript/Referencia/Objetos_globales/Function", "tags": [], "summary": "Cada funci\u00f3n en JavaScript es actualmente un objeto <code>Function</code>.", "localization_tags": [], "locale": "es", "last_edit": "2019-03-23T20:01:44.527061", "review_tags": []}, {"uuid": "eaa54426-4af4-4816-8b35-1e80d0684f33", "title": "Function", "url": "/fa/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "TopicStub", "Function", "NeedsTranslation", "JavaScript"], "summary": "The <strong><code>Function</code> constructor</strong> creates a new <code>Function</code> object. Calling the constructor directly can create functions dynamically, but suffers from\u00a0security and similar (but far less significant) performance issues to <a href=\"/fa/docs/Web/JavaScript/Reference/eval\" title=\"The documentation about this has not yet been written; please consider contributing!\"><code>eval</code></a>. However, unlike eval, the Function constructor creates functions which execute in the global scope only.", "localization_tags": ["inprogress"], "locale": "fa", "last_edit": "2019-03-18T17:17:50.650897", "review_tags": []}, {"uuid": "70e66951-2938-494c-81b7-464229797f25", "title": "Function", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Function", "tags": ["Constructor", "JavaScript", "Function", "Reference"], "summary": "Le constructeur <code><strong>Function</strong></code> cr\u00e9e un nouvel objet <code>Function</code>. En JavaScript, chaque fonction est un objet <code>Function</code>.", "localization_tags": [], "locale": "fr", "last_edit": "2019-03-23T20:13:19.949484", "review_tags": []}, {"uuid": "ef9bf411-2d95-4d1f-928b-a82c350849fc", "title": "F\u00fcggv\u00e9ny", "url": "/hu/docs/Web/JavaScript/Reference/Global_Objects/F%C3%BCggv%C3%A9ny", "tags": ["Konstruktor", "JavaScript", "F\u00fcggv\u00e9ny", "Function"], "summary": "<code>Function</code> objects created with the <code>Function</code> constructor are parsed when the function is created. This is less efficient than declaring a function with a <a href=\"/en-US/docs/Web/JavaScript/Reference/Operators/function\">function expression</a> or <a href=\"/en-US/docs/Web/JavaScript/Reference/Statements/function\">function statement</a> and calling it within your code, because such functions are parsed with the rest of the code.", "localization_tags": ["inprogress"], "locale": "hu", "last_edit": "2019-03-23T18:01:36.046773", "review_tags": []}, {"uuid": "eaa54426-4af4-4816-8b35-1e80d0684f33", "title": "Function", "url": "/id/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "NeedsTranslation", "Function", "TopicStub", "JavaScript"], "summary": "Konstruktor<strong><code><strong> </strong></code><code>Function</code> </strong>membuat sebuah objek <code>Function</code> baru. Di Javascript setiap fungsi adalah sebuah objek <code>Function</code>.", "localization_tags": ["inprogress"], "locale": "id", "last_edit": "2019-03-18T16:47:58.383174", "review_tags": []}, {"uuid": "941f202e-f909-4ce4-a0ac-72deff182be1", "title": "Function", "url": "/it/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": [], "summary": "The <strong><code>Function</code> constructor</strong> creates a new <code>Function</code> object. In JavaScript every function is actually a <code>Function</code> object.", "localization_tags": ["inprogress"], "locale": "it", "last_edit": "2019-03-23T18:29:48.039076", "review_tags": []}, {"uuid": "011ecc74-6a2c-44f6-8030-68865eeb410e", "title": "Function", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "JavaScript Reference", "Function", "JavaScript"], "summary": "<strong><code>Function</code>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf</strong>\u306f\u65b0\u898f\u306e <code>Function</code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u76f4\u63a5\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3076\u3053\u3068\u3067\u3001\u95a2\u6570\u3092\u52d5\u7684\u306b\u4f5c\u6210\u3067\u304d\u307e\u3059\u304c\u3001 <a href=\"/ja/docs/Web/JavaScript/Reference/Global_Objects/eval\" title=\"eval()\u00a0\u306f\u6587\u5b57\u5217\u3068\u3057\u3066\u8868\u3055\u308c\u305f JavaScript \u30b3\u30fc\u30c9\u3092\u5f0f\u3068\u3057\u3066\u8a55\u4fa1\u3059\u308b\u95a2\u6570\u3067\u3059\u3002\"><code>eval</code></a> \u3068\u540c\u3058\u304f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u554f\u984c\u306b\u60a9\u307e\u3055\u308c\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2019-03-23T20:05:20.776860", "review_tags": ["editorial"]}, {"uuid": "4372a6c6-a456-4116-8dd7-8667dc7c5745", "title": "Function", "url": "/ko/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "Function", "JavaScript"], "summary": "<strong><code>Function</code> \uc0dd\uc131\uc790</strong>\ub294 \uc0c8 <code>Function</code> \uac1d\uccb4\ub97c \ub9cc\ub4ed\ub2c8\ub2e4. \uc774 \uc0dd\uc131\uc790\ub97c \uc9c1\uc811\uc801\uc73c\ub85c \ud638\ucd9c\ud558\uc5ec \ub3d9\uc801\uc73c\ub85c \ud568\uc218\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uc73c\ub098 \ubcf4\uc548 \ubb38\uc81c\uc640 <a href=\"/ko/docs/Web/JavaScript/Reference/Global_Objects/eval\" title=\"eval()\u00a0\uc740 \ubb38\uc790\ub85c\uc368 \ud45c\ud604\ub41c \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.\"><code>eval</code></a>\uacfc \ube44\uc2b7\ud55c \uc720\uc0ac(\ud6e8\uc52c \ub35c \uc2ec\uac01\ud55c) \uc131\ub2a5 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud558\uc9c0\ub9cc, <code>eval</code>\uacfc \ub2ec\ub9ac <code>Function</code> \uc0dd\uc131\uc790\ub97c \uc774\uc6a9\ud558\uba74\u00a0\uc804\uc5ed \ubc94\uc704(global scope)\uc5d0\uc11c \ucf54\ub4dc\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\uace0, \ub354 \ub098\uc740 \ud504\ub85c\uadf8\ub798\ubc0d \uc2b5\uad00\uc744 \uc720\ub3c4\ud558\uba70 \ub354 \ud6a8\uc728\uc801\uc73c\ub85c \ucf54\ub4dc\ub97c \ucd5c\uc18c\ud654 \ud560\u00a0 \uc218 \uc788\uc2b5\ub2c8\ub2e4.", "localization_tags": [], "locale": "ko", "last_edit": "2019-03-23T19:43:43.748723", "review_tags": []}, {"uuid": "89536490-a294-47dd-ab53-0c181cf7a623", "title": "Function", "url": "/nl/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "NeedsTranslation", "Function", "TopicStub", "JavaScript"], "summary": "The <strong><code>Function</code> constructor</strong> creates a new <code>Function</code> object. In JavaScript every function is actually a <code>Function</code> object.", "localization_tags": ["inprogress"], "locale": "nl", "last_edit": "2019-03-23T18:44:26.351609", "review_tags": []}, {"uuid": "1dad5ea9-c5ad-4cbb-b0e6-73e6febcf999", "title": "Function", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Function", "tags": ["Konstruktor", "Function", "JavaScript"], "summary": "<strong>Konstruktor</strong> <strong><code>Function</code> </strong>tworzy nowy obiekt Function(tworzy funkcj\u0119 poprzez konstruktor). W JavaScripcie w\u0142a\u015bciwie ka\u017cda funkcja jest obiektem <code>Function</code>.", "localization_tags": ["inprogress"], "locale": "pl", "last_edit": "2019-03-23T18:57:36.603696", "review_tags": []}, {"uuid": "04a0c6f1-9e6f-41a6-8a05-7e871af66c2b", "title": "Function", "url": "/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "NeedsTranslation", "Function", "TopicStub", "JavaScript"], "summary": "O <strong><code>construtor Function</code></strong> cria um novo objeto <code>Function</code>. Em JavaScript cada fun\u00e7\u00e3o \u00e9, na verdade, um objeto <code>Function</code>.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2019-03-23T19:05:31.741150", "review_tags": []}, {"uuid": "eaa54426-4af4-4816-8b35-1e80d0684f33", "title": "Function", "url": "/pt-PT/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "TopicStub", "Function", "NeedsTranslation", "JavaScript"], "summary": "The <strong><code>Function</code> constructor</strong> creates a new <code>Function</code> object. In JavaScript every function is actually a <code>Function</code> object.", "localization_tags": ["inprogress"], "locale": "pt-PT", "last_edit": "2019-03-23T18:14:24.989262", "review_tags": []}, {"uuid": "ad4d6a99-e671-4dd8-aada-cf855667533e", "title": "Function", "url": "/ro/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "NeedsTranslation", "Function", "TopicStub", "JavaScript"], "summary": "The <strong><code>Function</code> constructor</strong> creates a new <code>Function</code> object. In JavaScript every function is actually a <code>Function</code> object.", "localization_tags": ["inprogress"], "locale": "ro", "last_edit": "2019-03-23T19:13:53.919504", "review_tags": []}, {"uuid": "46953f0f-5f27-43ad-8fed-5660c48df9aa", "title": "Function", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "Reference", "Function", "JavaScript", "NeedsUpdate"], "summary": "The\u00a0<strong><code>Function</code>\u00a0constructor</strong>\u00a0creates a new\u00a0<code>Function</code>object. Calling the constructor directly can create functions dynamically, but suffers from\u00a0security and similar (but far less significant) performance issues to <a href=\"/ru/docs/Web/JavaScript/Reference/Global_Objects/eval\" title=\"\u041c\u0435\u0442\u043e\u0434\u00a0eval()\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u00a0JavaScript \u043a\u043e\u0434, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439.\"><code>eval</code></a>. However, unlike eval, the Function constructor creates functions which execute in the global scope only.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2019-03-28T08:06:29.420186", "review_tags": []}, {"uuid": "eaa54426-4af4-4816-8b35-1e80d0684f33", "title": "Function", "url": "/th/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "NeedsTranslation", "Function", "TopicStub", "JavaScript"], "summary": "The <strong><code>Function</code> constructor</strong> creates a new <code>Function</code> object. In JavaScript every function is actually a <code>Function</code> object.", "localization_tags": ["inprogress"], "locale": "th", "last_edit": "2019-03-23T18:33:40.637342", "review_tags": []}, {"uuid": "607ed79a-aa03-4994-90a7-b9b2380ad857", "title": "Function", "url": "/tr/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["fonksiyon", "yap\u0131c\u0131"], "summary": "<strong><code>Fonksiyon</code> yap\u0131c\u0131s\u0131</strong>\u00a0yeni bir <code>Fonksiyon\u00a0</code>nesnesi yarat\u0131r. JavaScript'de her fonksiyon\u00a0asl\u0131nda bir\u00a0<code>Fonksiyon</code>\u00a0nesnesidir.", "localization_tags": ["inprogress"], "locale": "tr", "last_edit": "2019-03-23T18:23:14.949432", "review_tags": []}, {"uuid": "eaa54426-4af4-4816-8b35-1e80d0684f33", "title": "Function", "url": "/uk/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "TopicStub", "NeedsTranslation", "JavaScript", "Function"], "summary": "\u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 <code>Function</code> \u0441\u0442\u0432\u043e\u0440\u044e\u0454 \u043d\u043e\u0432\u0438\u0439 \u043e\u0431'\u0454\u043a\u0442\u00a0 <code>Function</code>. \u0412 JavaScript \u043a\u043e\u0436\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0456\u044f \u0454 \u043e\u0431'\u0454\u043a\u0442\u043e\u043c <code>Function</code>.", "localization_tags": ["inprogress"], "locale": "uk", "last_edit": "2019-03-18T17:09:44.796256", "review_tags": ["editorial"]}, {"uuid": "eaa54426-4af4-4816-8b35-1e80d0684f33", "title": "Function", "url": "/vi/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "TopicStub", "Function", "JavaScript", "h\u00e0m"], "summary": "H\u00e0m<strong> <code>Function</code></strong>\u00a0t\u1ea1o m\u1edbi m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng\u00a0<code>Function</code>. G\u1ecdi h\u00e0m t\u1ea1o tr\u1ef1c ti\u1ebfp c\u00f3 th\u1ec3 t\u1ea1o c\u00e1c h\u00e0m m\u1ed9t c\u00e1ch linh ho\u1ea1t, nh\u01b0ng g\u1eb7p ph\u1ea3i c\u00e1c v\u1ea5n \u0111\u1ec1 v\u1ec1 b\u1ea3o m\u1eadt v\u00e0 hi\u1ec7u su\u1ea5t t\u01b0\u01a1ng t\u1ef1 nh\u01b0\u00a0<a href=\"/vi/docs/Web/JavaScript/Reference/eval\" title=\"The documentation about this has not yet been written; please consider contributing!\"><code>eval</code></a>.", "localization_tags": ["inprogress"], "locale": "vi", "last_edit": "2019-03-18T17:11:23.338423", "review_tags": []}, {"uuid": "8213afd1-8e1c-44b4-a357-be842723dda3", "title": "Function", "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["Constructor", "\u51fd\u6570", "\u6784\u9020\u5668", "JavaScript", "Function", "CSP"], "summary": "<strong><code>Function</code>\u00a0\u6784\u9020\u51fd\u6570</strong>\u00a0\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Function\u5bf9\u8c61\u3002\u00a0\u5728 JavaScript \u4e2d, \u6bcf\u4e2a\u51fd\u6570\u5b9e\u9645\u4e0a\u90fd\u662f\u4e00\u4e2a<code>Function\u5bf9\u8c61\u3002</code>", "localization_tags": [], "locale": "zh-CN", "last_edit": "2019-03-18T16:41:04.143387", "review_tags": []}, {"uuid": "162de592-290b-4019-8f52-cb482fac257e", "title": "Function", "url": "/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Function", "tags": ["TopicStub", "JavaScript Reference", "NeedsTranslation", "JavaScript"], "summary": "<strong><code>Function</code>\u00a0\u5efa\u69cb\u51fd\u5f0f</strong>\u53ef\u5efa\u7acb\u4e00\u500b\u65b0\u7684\u00a0<code>Function</code>\u00a0\u7269\u4ef6\u3002\u5728\u00a0JavaScript \u4e2d\uff0c\u6240\u6709\u7684\u51fd\u5f0f\u5be6\u969b\u4e0a\u90fd\u662f\u00a0<code>Function</code>\u00a0\u7269\u4ef6\u3002", "localization_tags": ["inprogress"], "locale": "zh-TW", "last_edit": "2019-03-23T19:25:10.546437", "review_tags": []}], "modified": "2019-03-28T19:29:34.279412", "label": "Function", "localization_tags": ["inprogress"], "locale": "he", "id": 235753, "last_edit": "2019-03-18T17:20:21.714508", "summary": "The <strong><code>Function</code> constructor</strong> creates a new <code>Function</code> object. Calling the constructor directly can create functions dynamically, but suffers from\u00a0security and similar (but far less significant) performance issues to <a href=\"/he/docs/Web/JavaScript/Reference/eval\" title=\"The documentation about this has not yet been written; please consider contributing!\"><code>eval</code></a>. However, unlike eval, the Function constructor creates functions which execute in the global scope only", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Description", "title": "Description"}, {"id": "Properties_and_Methods_of_Function", "title": "Properties and Methods of "}, {"id": "Function_prototype_object", "title": null}, {"id": "Properties", "title": "Properties"}, {"id": "Methods", "title": "Methods"}, {"id": "Function_instances", "title": null}, {"id": "Examples", "title": "Examples"}, {"id": "Specifying_arguments_with_the_Function_constructor", "title": "Specifying arguments with the "}, {"id": "Difference_between_Function_constructor_and_function_declaration", "title": "Difference between Function constructor and function declaration"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "sect1", "title": null}, {"id": "Legend", "title": "Legend"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Global_Objects/Function", "review_tags": []}