You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- added js to code blocks for syntax highlighting
- line 70 subect >>> subject
- line 71 variables >>> subject
- removal of red dots
- line 70 added code formatting to "student and "subject" to match style
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This challenge focuses on classes in JavaScript using the new `class` keyword.
6
6
7
7
You already pretty much know all about classes but you're used to seeing them built in the following context:
8
8
9
-
```
9
+
```js
10
10
functionPerson(personAttributes) {
11
11
this.name=personAttributes.name;
12
12
this.age=personAttributes.age;
@@ -39,7 +39,7 @@ const fred = new Person({
39
39
***Project Managers** - extensions of Instructors
40
40
***IMPORTANT** - You'll need to create 2 - 3 objects for each class and test them according to their unique Attributes. For example:
41
41
42
-
```
42
+
```js
43
43
constfred=newInstructor({
44
44
name:'Fred',
45
45
location:'Bedrock',
@@ -56,7 +56,7 @@ const fred = new Instructor({
56
56
* First we need a Person class. This will be our `base-class`
57
57
* Person receives `name``age``location``gender` all as props
58
58
* Person receives `speak` as a method.
59
-
* This method logs out a phrase `Hello my name is Fred, I am from Bedrock` where `name` and `location` are the object's own props
59
+
* This method logs out a phrase `Hello my name is Fred, I am from Bedrock` where `name` and `location` are the object's own props
60
60
61
61
#### Instructor
62
62
@@ -67,8 +67,8 @@ const fred = new Instructor({
67
67
*`favLanguage` i.e. 'JavaScript, Python, Elm etc.'
68
68
*`catchPhrase` i.e. `Don't forget the homies`
69
69
* Instructor has the following methods:
70
-
*`demo` receives a `subect` string as an argument and logs out the phrase 'Today we are learning about {subject}' where subject is the param passed in.
71
-
*`grade` receives a student object and a subject string as arguments and logs out '{student.name} receives a perfect score on {variables}'
70
+
*`demo` receives a `subject` string as an argument and logs out the phrase 'Today we are learning about {subject}' where subject is the param passed in.
71
+
*`grade` receives a `student` object and a `subject` string as arguments and logs out '{student.name} receives a perfect score on {subject}'
72
72
73
73
#### Student
74
74
@@ -92,7 +92,7 @@ const fred = new Instructor({
92
92
*`favInstructor`: i.e. Sean
93
93
* ProjectManangers have the following Methods:
94
94
*`standUp` a method that takes in a slack channel and logs `{name} announces to {channel}, @channel standy times!
95
-
*`debugsCode` a method that takes in a student object and a subject and logs out `{name} debugs {student.name}'s code on {subject}`
95
+
*`debugsCode` a method that takes in a student object and a subject and logs out `{name} debugs {student.name}'s code on {subject}`
0 commit comments