Skip to content

Commit b2ec76d

Browse files
committed
minor
1 parent 8b17058 commit b2ec76d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

1-js/2-first-steps/20-object-methods/article.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let user = {
1111

1212
And, in the real world, a user can `act`: to select something from the shopping cart, to login, to logout etc.
1313

14-
Let's implement the same in Javascript.
14+
In Javascript, that's implemented as function properties, so called "methods".
1515

1616
[cut]
1717

@@ -36,9 +36,7 @@ Here we've just used a Function Expression to create the function and assign it
3636

3737
Then we can call it. The user now can speak!
3838

39-
A function that is the property of an object is called its *method*.
40-
41-
So, here we've got a method `sayHi` of the object `user`.
39+
We created a method `sayHi` of the object `user`.
4240

4341
```smart header="Object-oriented programming"
4442
When we write our code using objects to represent entities, that's called an [object-oriented programming](https://en.wikipedia.org/wiki/Object-oriented_programming), in short: "OOP".

0 commit comments

Comments
 (0)