Skip to content

Commit ad296de

Browse files
committed
2 parents 217eb0e + b4ee23c commit ad296de

File tree

2 files changed

+2
-2
lines changed
  • 1-js
    • 02-first-steps/14-function-basics/1-if-else-required
    • 07-object-oriented-programming/09-class

2 files changed

+2
-2
lines changed

1-js/02-first-steps/14-function-basics/1-if-else-required/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ function checkAge(age) {
3535
}
3636
```
3737

38-
Is there any difference in the bahavior of these two variants?
38+
Is there any difference in the behavior of these two variants?

1-js/07-object-oriented-programming/09-class/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ let user = new User("John");
4343
user.sayHi();
4444
```
4545

46-
It's easy to see that the two examples are alike. Just please note that methods in a class do not have a comma between them. Notice developers sometimes forget it and put a comma between class methods, and things don't work. That's not a literal object, but a class syntax.
46+
It's easy to see that the two examples are alike. Just please note that methods in a class do not have a comma between them. Novice developers sometimes forget it and put a comma between class methods, and things don't work. That's not a literal object, but a class syntax.
4747

4848
So, what exactly does `class` do? We may think that it defines a new language-level entity, but that would be wrong.
4949

0 commit comments

Comments
 (0)