From d46dc349f1616d064ca7979fa599dfc143f5cc22 Mon Sep 17 00:00:00 2001 From: Edy Ionescu Date: Mon, 26 Nov 2018 18:03:29 +0200 Subject: [PATCH] Arrow functions don't have a `prototype` property (#25198) --- guide/english/javascript/arrow-functions/index.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/guide/english/javascript/arrow-functions/index.md b/guide/english/javascript/arrow-functions/index.md index 800bd86c25..c56741e1b7 100644 --- a/guide/english/javascript/arrow-functions/index.md +++ b/guide/english/javascript/arrow-functions/index.md @@ -85,9 +85,15 @@ An arrow function does not have its own `arguments` object. For example, if you const myFunc = (...n) => { console.log('The first argument is', n[0]); } - myFunc(10,20,30,40,40); // output: The first argument is 10 ``` + +Because of this, an arrow function cannot be used as a constructor, hence there's no need for a `prototype` property. + +```javascript +(() => {}).hasOwnProperty('prototype'); // false +``` + #### Further Reading MDN link