Implement new Concept Exercise: Classes #1015
Labels
new exercise ✨
x:action/create
Work on something from scratch
x:knowledge/intermediate
Quite a bit of Exercism knowledge required
x:module/concept
Work on Concepts
x:module/concept-exercise
Work on Concept Exercises
x:rep/large
Large amount of reputation
x:size/large
Large amount of work
x:status/claimed
Someone is working on this issue
x:type/content
Work on content (e.g. exercises, concepts)
Getting started
Here you can read about what Concept Exercises are and how they are structured:
If you have not done so yet, it is probably also helpful to do a couple of "Learning Exercises" (this is how they are called on the site) yourself. You can also look at the code of an existing concept exercise like
bird-watcher
(conceptfor-loops
) for reference.Goal
The goal of this exercise is to introduce prototypes and classes.
Concepts
The following concept pages need to be created. You can combine the introduction.md files from the concepts and use that as introduction.md for the concept exercise. No need to create different content at this point.
classes
Learning Objectives
In the concepts the student should learn about the following topics and then practice them in the concept exercise.
The explanation from this MDN link might be helpful in phrasing this:
this
mean/donew
Out of Scope
extends
,super
(will be taught later)About.md of the Concept
Here some ideas of what could be mentioned.
this
problem when nesting functions, mitigation via self/that or arrow functionsPrerequisites
objects
functions
At this point the student only knows about objects as simple key-value maps.
this
was not introduced before. See this list for details on the learning curve we are aiming for.Exercise Idea
C# Elons Toys Exercise could serve as template.
Help
You can choose to do this solo-style, or collaborate with multiple people on this. The suggested approach is to
The text was updated successfully, but these errors were encountered: