Skip to content

Commit 1273ae4

Browse files
committed
minor fixes
1 parent edef0b4 commit 1273ae4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

1-js/04-object-basics/04-object-methods/article.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ user.sayHi = function() {
3232
user.sayHi(); // Hello!
3333
```
3434

35-
Here we've just used a Function Expression to create the function and assign it to the property `user.sayHi` of the object.
35+
Here we've just used a Function Expression to create a function and assign it to the property `user.sayHi` of the object.
3636

37-
Then we can call it. The user can now speak!
37+
Then we can call it as `user.sayHi()`. The user can now speak!
3838

39-
A function that is the property of an object is called its *method*.
39+
A function that is a property of an object is called its *method*.
4040

4141
So, here we've got a method `sayHi` of the object `user`.
4242

0 commit comments

Comments
 (0)