so much easier! - #217
Open
DavidBenavidez123 wants to merge 1 commit into
Open
Conversation
zackhitch
approved these changes
Aug 10, 2018
| @@ -1 +1,93 @@ | |||
| // CODE here for your Lambda Classes | |||
|
|
|||
| class Person { | |||
| } | ||
| } | ||
|
|
||
| class Instructor extends Person { |
| this.classname = studentAttr.classname; | ||
| this.favSubjects = studentAttr.favSubjects; | ||
| } | ||
| listsSubjects() { |
There was a problem hiding this comment.
This method should be a method that logs out all of the student's favoriteSubjects one by one..
Given an array, which favSubjects is, how might you log each element of the array, one element at a time?
| } | ||
|
|
||
|
|
||
| class ProjectManager extends Instructor { |
|
|
||
|
|
||
|
|
||
| const fred = new Instructor({ |
There was a problem hiding this comment.
Don't forget to test the ProjectManager as well. And try using your own test data, it's better practice than using existing code.
| function GameObject(options) { | ||
| this.createdAt = options.createdAt; | ||
| this.dimensions = options.dimensions; | ||
| class GameObject { |
| GameObject.prototype.destroy = function() { | ||
| return `Object was removed from the game.`; | ||
| }; | ||
| class CharacterStats extends GameObject { |
| GameObject.call(this, characterStatsOptions); | ||
| this.hp = characterStatsOptions.hp; | ||
| this.name = characterStatsOptions.name; | ||
| class Humanoid extends CharacterStats { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.