From 6b296c177073b65ac4171f64b9f2f4837162e943 Mon Sep 17 00:00:00 2001 From: Sani Rich <69062301+sarscode@users.noreply.github.com> Date: Mon, 11 Jan 2021 13:09:58 +0100 Subject: [PATCH] new.target is undefined not empty It is should be made know that `new.target` is `undefined` for regular function calls than say it is empty. --- 1-js/04-object-basics/06-constructor-new/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/04-object-basics/06-constructor-new/article.md b/1-js/04-object-basics/06-constructor-new/article.md index a885e35f..5f8709ae 100644 --- a/1-js/04-object-basics/06-constructor-new/article.md +++ b/1-js/04-object-basics/06-constructor-new/article.md @@ -91,7 +91,7 @@ The syntax from this section is rarely used, skip it unless you want to know eve Inside a function, we can check whether it was called with `new` or without it, using a special `new.target` property. -It is empty for regular calls and equals the function if called with `new`: +It is undefined for regular calls and equals the function if called with `new`: ```js run function User() {