From cbb2167bb47ac019e74d8f843c8c7869e1cc8fc9 Mon Sep 17 00:00:00 2001 From: RandyMoore Date: Sun, 6 Aug 2017 21:27:01 -0500 Subject: [PATCH] Change brackets to parentheses From my experience brackets are {}. () are referred to as parentheses, or perhaps "round brackets" but that would be too wordy. --- 1-js/04-object-basics/06-constructor-new/article.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 b49de5cd..120cf4aa 100644 --- a/1-js/04-object-basics/06-constructor-new/article.md +++ b/1-js/04-object-basics/06-constructor-new/article.md @@ -162,16 +162,16 @@ alert( new SmallUser().name ); // John Usually constructors don't have a `return` statement. Here we mention the special behavior with returning objects mainly for the sake of completeness. -````smart header="Omitting brackets" -By the way, we can omit brackets after `new`, if it has no arguments: +````smart header="Omitting parentheses" +By the way, we can omit parentheses after `new`, if it has no arguments: ```js -let user = new User; // <-- no brackets +let user = new User; // <-- no parentheses // same as let user = new User(); ``` -Omitting brackets here is not considered a "good style", but the syntax is permitted by specification. +Omitting parentheses here is not considered a "good style", but the syntax is permitted by specification. ```` ## Methods in constructor