aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/fr/web/javascript/reference/global_objects/function/apply/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/function/apply/index.html b/files/fr/web/javascript/reference/global_objects/function/apply/index.html
index fe76177918..cd506e138f 100644
--- a/files/fr/web/javascript/reference/global_objects/function/apply/index.html
+++ b/files/fr/web/javascript/reference/global_objects/function/apply/index.html
@@ -86,7 +86,7 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Function/apply
}
var monTableau = [4, "Coucou monde !", false];
-var monInstance = MonConstructeur.constructor(monTableau);
+var monInstance = MonConstructeur.construct(monTableau);
console.log(monInstance.propriété1); // "Coucou monde !"
console.log(monInstance instanceof MonConstructeur); // "true"