Skip to content

Commit fb4fc33

Browse files
committed
minor fixes
1 parent b258e8f commit fb4fc33

File tree

1 file changed

+2
-1
lines changed
  • 1-js/04-object-basics/06-constructor-new

1 file changed

+2
-1
lines changed

‎1-js/04-object-basics/06-constructor-new/article.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ Let's note once again -- technically, any function (except arrow functions, as t
7070
If we have many lines of code all about creation of a single complex object, we can wrap them in an immediately called constructor function, like this:
7171
7272
```js
73-
let user = new function() {
73+
// create a function and immediately call it with new
74+
let user = new function() {
7475
this.name = "John";
7576
this.isAdmin = false;
7677

0 commit comments

Comments
 (0)