Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /