Skip to content

Commit 0735fc8

Browse files
author
Juan Carlos Ceniceros
committed
Fix some typos
1 parent 56a3d6c commit 0735fc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/JavaScript_Basics/classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ SwapnilInfo.getNameAndCollege();
101101

102102
### Static methids
103103

104-
It's also possible to define define **[static methods](https://developer.mozilla.org/en-US/docs/Glossary/Static_method)**, [static methods](https://developer.mozilla.org/en-US/docs/Glossary/Static_method) can be called without needing to instantiate the class, for example
104+
It's also possible to define define **[static methods](https://developer.mozilla.org/en-US/docs/Glossary/Static_method)**, [static methods](https://developer.mozilla.org/en-US/docs/Glossary/Static_method) can be called without needing to instantiate the class, for instance:
105105

106106
```javascript
107107
class StudentInfo {
@@ -143,7 +143,7 @@ class StudentInfo {
143143
    console.log (`${this.name}`);
144144
  }
145145

146-
  set college() {
146+
  set college(college) {
147147
    this.college = college.toUpperCase();
148148
  }
149149

0 commit comments

Comments
 (0)