This issue describes how to implement the class concept exercise for the JavaScript track and is a continuation of #1325 .
Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:
Please also watch the following video:
The goal of this exercise is to teach the student how to consume classes and their properties/methods both from static and instantiation standpoints within JavaScript.
new keyword.static keyword.get, set, and Object.defineProperty)new keywordclasses-introbooleansnumbersstrings_Note: most resources also include inheritance and so suggestions are welcome for resources that expressly tackle the goals without venturing out of scope._
_Note: most resources also include inheritance and so suggestions are welcome for resources that expressly tackle the goals without venturing out of scope._
No changes needed.
No changes needed.
See the Implementation Guide for JavaScript Concept Exercises for more details.
If you have any questions while implementing the exercise, please post the questions as comments in this issue.
@rishiosaur - Tagging you for continuity
@Tbhesswebber I think we should include static properties and methods in this exercise.
@Tbhesswebber I think we should include static properties and methods in this exercise.
Just to clarify, @rishiosaur, did you mean "should" or "shouldn't"?
Until static properties have landed (https://github.com/tc39/proposal-class-fields#class-field-declarations-for-javascript), I rather not have them as exercises until then, because we will need to handle the syntax, which is "fragile".
@SleeplessByte - I totally forgot that you can't do static properties with class syntax in JS yet (I'm one of those weirdos who actually prefers pseudoclassical syntax). I removed static properties from the concepts and learning objectives.
@rishiosaur and @Tbhesswebber how is it going? Excited to see this exercise 🗡️
@SleeplessByte PR coming for classes-intro soon! Just finishing up the tests.
It might be helpful to have a DRAFT PR up there already, before you put all the work in the tests. But I'm, okay with either approach.
Intermediate one is currently at a standstill. Some work stuff came up and I am now the only person working on what needs to be delivered in a week.
Good luck! We'll see you after 🍡