minor fixes

This commit is contained in:
Ilya Kantor 2021-06-15 09:23:16 +03:00
parent b258e8fd00
commit fb4fc33a22

View file

@ -70,7 +70,8 @@ Let's note once again -- technically, any function (except arrow functions, as t
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:
```js
let user = new function() {
// create a function and immediately call it with new
let user = new function() {
this.name = "John";
this.isAdmin = false;