Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create workout to cover prototypes in JavaScript #717

Open
7 tasks
lizTheDeveloper opened this issue Apr 24, 2018 · 0 comments
Open
7 tasks

Create workout to cover prototypes in JavaScript #717

lizTheDeveloper opened this issue Apr 24, 2018 · 0 comments

Comments

@lizTheDeveloper
Copy link
Collaborator

Create a workout (or two, if it makes more sense) to cover the following standards and objectives.

We have content that covers the idea of inheritance, and the idea of constructors, in the Java Topic. We'll be moving lots of that into the Comp-Sci topic soon, so that we can have one "Object-Oriented Theory" course, and one "Object Oriented Implementation" section in each language course (where applicable, of course). You only have to cover the "how" and how prototypes can be class-like.

Ensure there is a question and exercise related to each of these labels:

  • js.prototype-class : Use prototypes to create class-like objects in JavaScript

    • js.prototype-class.0 Use a constructor function and the execution context of that function to produce an instance with particular properties
    • js.prototype-class.1 Use the prototype of the constructor function to set methods on instances produced by the constructor function
    • js.prototype-class.2 Modify the instance using a prototype method
  • js.prototype-inherit : Use prototypes to create class-like inheritance in JavaScript

    • js.prototype-inherit.0 Set the prototype of the constructor function to inherit methods on instances produced by the constructor function
    • js.prototype-inherit.1 Modify the instance using an inherited prototype's method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant