Skip to content

Ben Tsao - #432

Open
cbtsao47 wants to merge 20 commits into
bloominstituteoftechnology:masterfrom
cbtsao47:master
Open

Ben Tsao#432
cbtsao47 wants to merge 20 commits into
bloominstituteoftechnology:masterfrom
cbtsao47:master

Conversation

@cbtsao47

Copy link
Copy Markdown

@szincone szincone left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, very strong stretch. Code is clean and well-formatted. Good use of this keyword throughout.

return `${student.name} receives a perfect score on ${subject}`;
}
gradeAssignment(student) {
let points = 20 - Math.floor(Math.random() * 30);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good use of Math.random and Math.floor to generate a random score.

if (this.grade >= 70) {
return `Congrats ${this.name}! You have just graduated Lambda School!`;
}
while (this.grade < 70) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun use of a while loop to do graduating and re-invoking the gradeAssignment function if its too low.

return `${this.name} announces to ${channel}, @channel standy times!`;
}
debugsCode(student, subject) {
return `${this.name} debugs ${student.name}'s code on ${subject}`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job using this correctly to access the PM's name.

}

listsSubjects() {
return `${this.favSubjects[0]},${this.favSubjects[1]},${

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could possibly have this method be a forEach loop and just return each subject.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants