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.

Implement new Concept Exercise: Dates

See original GitHub issue

Note: The concept was already created, only the exercise is missing now.

Getting Started

If you have not yet contributed to concept exercises before, this task requires some upfront reading to acquire the necessary background knowledge.

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 (concept for-loops) for reference.

See the documentation above (general documentation), as well as How to implement a Concept Exercise in JavaScript.

Also be aware of these general guidelines.

Goal

The goal here is to create a new concept exercise that teaches working with dates via Date.

The concept needs to be written from scratch, the exercise can be ported from another track (see details below).

Concepts

The following concept needs to be created. You can use the introduction.md file of the concept also as introduction.md file of the exercise. No need to create different content at this point. Additionally, if you want to save some time it is ok to not have an extensive about.md for now. It can also be mainly the introduction.md content, maybe with some additions you would like to make.

  • dates (maybe use “Date and Time” as display name in the config)

Learning Objectives

In the concepts the student should learn about the following topics and then practice them in the concept exercise.

  • how dates/timestamps are represented internally, see e.g. MDN link
  • how to create dates with new Date, incl. some of the commonly used variants
  • Date.parse
  • Date.now
  • getting and setting the date components (getMonth/setMonth etc.)
  • how to calculate a time difference
  • how to compare dates

The about.md file could additionally mention …

Out of Scope

Prerequisites

  • classes

Other prerequisites should be added as needed to solve the specific exercise.

Exercise Idea

There are two options for exercises from other languages that could be used as a template.

If you port one of these exercises, make sure only to include tasks that actually make sense in JavaScript and add value for the student. Feel free to remove/replace/add tasks as needed.

Resources

Here some links that might be helpful as a starting point and/or for the links section of the concept:

How to proceed

  1. First accept this issue by saying “I’d like to work on this” (no need to wait for a response, just go ahead).
  2. Use this issue to discuss any questions you have, what should be included in the content and what not and to collect more reference material.
  3. Create a PR and set “exercism/javascript” as reviewers. Additionally you can write in #maintaining-javascript on Slack that your PR is ready for review. Once you incorporated any critical feedback that the reviewer might give you and the PR is approved, it will be merged by a maintainer.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
SalahuddinAhammedcommented, Oct 2, 2022

I’d like to work on this.

1reaction
junedevcommented, Sep 10, 2022

👍 No problem, I will unassign you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

20 Active Date Ideas for Fitness Lovers - Beachbody on Demand
Save this list of fun and fit-focused, active date ideas for times when you need to spice up your dating routine.
Read more >
Couple Workout Ideas - The Dating Divas
Combine date night with a great couple workout! These active date ideas are the perfect way to get your heart pounding and connecting...
Read more >
Fitness program: 5 steps to get started - Mayo Clinic
Do strength training exercises for all major muscle groups at least two times a week. Aim to do a single set of each...
Read more >
40 brainstorming techniques to unlock great ideas as a group
First, collect an assortment of images for your brainstorm and write down a simple description of the topic you want to generate new...
Read more >
18 Creativity Exercises To Improve Creative Thinking at Work
Use these 18 creativity exercises to enhance your innovation individually ... Creativity exercises are a great way to discover new ideas and ...
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