question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[V3] Implement new Concept Exercise: concept/classes-intermediate

See original GitHub issue

This issue describes how to implement the class concept exercise for the JavaScript track and is a continuation of exercism/javascript#942 .

Getting started

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:

Goal

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.

Learning objectives

  • Understand the new keyword.
  • Understand the static keyword.
  • Understand how to consume instance methods and fields
  • Understand how to consume static methods.

Out of scope

  • Factory functions
  • Class expressions (declaring a class with a var statement)
  • Static properties & static methods
  • extends keyword
  • Class inheritance with super
  • Class properties (get, set, and Object.defineProperty)

Concepts

  • Class instantiation with the new keyword
  • Accessing class properties from outside of a class
  • Calling class methods from outside of a class
  • Calling static methods from outside of a class

Prerequisites

  • classes-intro
  • booleans
  • numbers
  • strings

Resources to refer to

Hints

Note: most resources also include inheritance and so suggestions are welcome for resources that expressly tackle the goals without venturing out of scope.

After

Note: most resources also include inheritance and so suggestions are welcome for resources that expressly tackle the goals without venturing out of scope.

  • MDN class fields - after because it goes out of scope and touches on TC39 proposals (possibly a bad resource?)

Representer

No changes needed.

Analyzer

No changes needed.

Implementing

See the Implementation Guide for JavaScript Concept Exercises for more details.

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
Tbhesswebbercommented, May 1, 2020

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.

1reaction
rishiosaurcommented, May 1, 2020

@SleeplessByte PR coming for classes-intro soon! Just finishing up the tests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[New Concept Exercise]: Class Composition in Python #3102
The goal of this concept exercise is to teach an understanding/use of class-composition in Python. Learning objectives. more fully understand ...
Read more >
Python Object-Oriented Programming (OOP) Exercise - PYnative
This Object-Oriented Programming (OOP) exercise aims to help you to learn and practice OOP concepts. All questions are tested on Python 3.
Read more >
National Standard Exercise Curriculum | Advanced Courses
The advanced level Exercise courses take complex processes from the Homeland Security Exercise and Evaluation Program (HSEEP) doctrine and explore them in ...
Read more >
Fitness Knowledge(Intermediate 3-5)
Fitness Knowledge (Intermediate 3-5) · Describes the concept of fitness and provides examples of physical activity to enhance fitness (3); ...
Read more >
What is ITIL? ITIL Concepts and Summary Process (Complete ...
Learn the framework of ITIL and understand the basic concepts, ... update from ITIL V3 which was in widespread use for over a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found