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
**Follow these steps for completing your project.**
17
17
18
-
*[ ] Submit a Pull-Request to merge <firstName-lastName> Branch into master (student's Repo). **Please don't merge your own pull request**
19
-
*[ ] Add your project manager as a reviewer on the pull-request
20
-
*[ ] Your project manager will count the project as complete by merging the branch back into master.
18
+
-[ ] Submit a Pull-Request to merge <firstName-lastName> Branch into master (student's Repo). **Please don't merge your own pull request**
19
+
-[ ] Add your project manager as a reviewer on the pull-request
20
+
-[ ] Your project manager will count the project as complete by merging the branch back into master.
21
21
22
22
## Assignment Description
23
23
24
24
You already pretty much know all about classes but you're used to seeing them built in the following context:
25
25
26
26
```js
27
-
functionPerson(personAttributes) {
27
+
functionPerson(personAttributes) {
28
28
this.name=personAttributes.name;
29
29
this.age=personAttributes.age;
30
30
this.location=personAttributes.location;
31
31
}
32
32
33
33
constfred=newPerson({
34
-
name:'Fred',
34
+
name:"Fred",
35
35
age:37,
36
-
location:'Bedrock'
36
+
location:"Bedrock"
37
37
});
38
38
```
39
39
40
-
* Because none of the above code is new, you're about to see your world get much much easier when dealing with Object Creation and Classical Inheritance as it pertains to JavaScript.
41
-
* The Class Keyword makes this SO MUCH EASIER!
42
-
***Fork** and clone this repository.
43
-
***Complete** all of the exercises found in the assignment files.
40
+
- Because none of the above code is new, you're about to see your world get much much easier when dealing with Object Creation and Classical Inheritance as it pertains to JavaScript.
41
+
- The Class Keyword makes this SO MUCH EASIER!
42
+
-**Fork** and clone this repository.
43
+
-**Complete** all of the exercises found in the assignment files.
44
44
45
45
## `prototype-refactor` - Take existing code and make it modern.
46
46
47
-
* You're going to work with your prototypes assignment you built out yesterday.
48
-
*`Challenge:`**Convert** all of your constructors into ES6 Classes using the `class` and `extends` keywords. You should be able to run your same logs and they should build out the proper expected behaviors.
47
+
- You're going to work with your prototypes assignment you built out yesterday.
48
+
-`Challenge:`**Convert** all of your constructors into ES6 Classes using the `class` and `extends` keywords. You should be able to run your same logs and they should build out the proper expected behaviors.
49
49
50
50
## `lambda-classes` - We need a roster of Lambda School personnel. Build it!
51
51
52
-
* We have a school to build here! This project will get you used to thinking about classes in JavaScript and building them from a brand new data set.
53
-
* Lambda personnel can be broken down into three different types of `people`.
54
-
***Instructors** - extensions of Person
55
-
***Students** - extensions of Person
56
-
***Project Managers** - extensions of Instructors
57
-
***IMPORTANT** - You'll need to create 2 - 3 objects for each class and test them according to their unique Attributes. For example:
52
+
- We have a school to build here! This project will get you used to thinking about classes in JavaScript and building them from a brand new data set.
53
+
- Lambda personnel can be broken down into three different types of `people`.
54
+
-**Instructors** - extensions of Person
55
+
-**Students** - extensions of Person
56
+
-**Project Managers** - extensions of Instructors
57
+
-**IMPORTANT** - You'll need to create 2 - 3 objects for each class and test them according to their unique Attributes. For example:
58
58
59
59
```js
60
60
constfred=newInstructor({
61
-
name:'Fred',
62
-
location:'Bedrock',
61
+
name:"Fred",
62
+
location:"Bedrock",
63
63
age:37,
64
-
favLanguage:'JavaScript',
65
-
specialty:'Front-end',
64
+
favLanguage:"JavaScript",
65
+
specialty:"Front-end",
66
66
catchPhrase:`Don't forget the homies`
67
67
});
68
68
```
69
69
70
70
#### Person
71
71
72
-
* First we need a Person class. This will be our `base-class`
73
-
* Person receives `name``age``location` all as props
74
-
* Person receives `speak` as a method.
75
-
* 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
72
+
- First we need a Person class. This will be our `base-class`
73
+
- Person receives `name``age``location` all as props
74
+
- Person receives `speak` as a method.
75
+
- 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
76
76
77
77
#### Instructor
78
78
79
-
* Now that we have a Person as our base class, we'll build our Instructor class.
80
-
* Instructor uses the same attributes that have been set up by Person
81
-
* Instructor has the following unique props:
82
-
*`specialty` what the Instructor is good at i.e. 'redux'
83
-
*`favLanguage` i.e. 'JavaScript, Python, Elm etc.'
84
-
*`catchPhrase` i.e. `Don't forget the homies`
85
-
* Instructor has the following methods:
86
-
*`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.
87
-
*`grade` receives a `student` object and a `subject` string as arguments and logs out '{student.name} receives a perfect score on {subject}'
79
+
- Now that we have a Person as our base class, we'll build our Instructor class.
80
+
- Instructor uses the same attributes that have been set up by Person
81
+
- Instructor has the following unique props:
82
+
-`specialty` what the Instructor is good at i.e. 'redux'
83
+
-`favLanguage` i.e. 'JavaScript, Python, Elm etc.'
84
+
-`catchPhrase` i.e. `Don't forget the homies`
85
+
- Instructor has the following methods:
86
+
-`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.
87
+
-`grade` receives a `student` object and a `subject` string as arguments and logs out '{student.name} receives a perfect score on {subject}'
88
88
89
89
#### Student
90
90
91
-
* Now we need some students!
92
-
* Student uses the same attributes that have been set up by Person
93
-
* Student has the following unique props:
94
-
*`previousBackground` i.e. what the Student used to do before Lambda School
95
-
*`className` i.e. CS132
96
-
*`favSubjects`. i.e. an array of the student's favorite subjects ['Html', 'CSS', 'JavaScript']
97
-
* Student has the following methods:
98
-
*`listsSubjects` a method that logs out all of the student's favoriteSubjects one by one.
99
-
*`PRAssignment` a method that receives a subject as an argument and logs out that the `student.name has submitted a PR for {subject}`
100
-
*`sprintChallenge` similar to PRAssignment but logs out `student.name has begun sprint challenge on {subject}`
91
+
- Now we need some students!
92
+
- Student uses the same attributes that have been set up by Person
93
+
- Student has the following unique props:
94
+
-`previousBackground` i.e. what the Student used to do before Lambda School
95
+
-`className` i.e. CS132
96
+
-`favSubjects`. i.e. an array of the student's favorite subjects ['Html', 'CSS', 'JavaScript']
97
+
- Student has the following methods:
98
+
-`listsSubjects` a method that logs out all of the student's favoriteSubjects one by one.
99
+
-`PRAssignment` a method that receives a subject as an argument and logs out that the `student.name has submitted a PR for {subject}`
100
+
-`sprintChallenge` similar to PRAssignment but logs out `student.name has begun sprint challenge on {subject}`
101
101
102
102
#### Project Manager
103
103
104
-
* Now that we have instructors and students, we'd be nowhere without our PM's
105
-
* ProjectManagers are extensions of Instructors
106
-
* ProjectManagers have the following unique props:
107
-
*`gradClassName`: i.e. CS1
108
-
*`favInstructor`: i.e. Sean
109
-
* ProjectManagers have the following Methods:
110
-
*`standUp` a method that takes in a slack channel and logs `{name} announces to {channel}, @channel standy times!
111
-
*`debugsCode` a method that takes in a student object and a subject and logs out `{name} debugs {student.name}'s code on {subject}`
104
+
- Now that we have instructors and students, we'd be nowhere without our PM's
105
+
- ProjectManagers are extensions of Instructors
106
+
- ProjectManagers have the following unique props:
107
+
-`gradClassName`: i.e. CS1
108
+
-`favInstructor`: i.e. Sean
109
+
- ProjectManagers have the following Methods:
110
+
-`standUp` a method that takes in a slack channel and logs `{name} announces to {channel}, @channel standy times!
111
+
-`debugsCode` a method that takes in a student object and a subject and logs out `{name} debugs {student.name}'s code on {subject}`
112
112
113
113
#### Stretch Problem
114
114
115
-
* Extend the functionality of the Student by adding a prop called grade and setting it equal to a number between 1-100.
116
-
* Now that our students have a grade build out a method on the Instructor (this will be used by _BOTH_ instructors and PM's) that will randomly add or subtract points to a student's grade. _Math.random_ will help.
117
-
* Add a graduate method to a student.
118
-
* This method, when called, will check the grade of the student and see if they're ready to graduate from Lambda School
119
-
* If the student's grade is above a 70% let them graduate! Otherwise go back to grading their assignments to increase their score.
115
+
- Extend the functionality of the Student by adding a prop called grade and setting it equal to a number between 1-100.
116
+
- Now that our students have a grade build out a method on the Instructor (this will be used by _BOTH_ instructors and PM's) that will randomly add or subtract points to a student's grade. _Math.random_ will help.
117
+
- Add a graduate method to a student.
118
+
- This method, when called, will check the grade of the student and see if they're ready to graduate from Lambda School
119
+
- If the student's grade is above a 70% let them graduate! Otherwise go back to grading their assignments to increase their score.
0 commit comments