minor fixes

This commit is contained in:
Ilya Kantor 2020-10-11 17:12:11 +03:00
parent edef0b4306
commit 1273ae44e3

View file

@ -32,11 +32,11 @@ user.sayHi = function() {
user.sayHi(); // Hello!
```
Here we've just used a Function Expression to create the function and assign it to the property `user.sayHi` of the object.
Here we've just used a Function Expression to create a function and assign it to the property `user.sayHi` of the object.
Then we can call it. The user can now speak!
Then we can call it as `user.sayHi()`. The user can now speak!
A function that is the property of an object is called its *method*.
A function that is a property of an object is called its *method*.
So, here we've got a method `sayHi` of the object `user`.