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: sets

See original GitHub issue

This issue describes how to implement the sets concept exercise for the JavaScript track.

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

This exercise aims to teach students how (and why) to use sets in JavaScript.

Learning objectives

  • Know how to add and remove elements from a Set
  • Know how to check whether a value is in a Set
  • Understand how Set checks equality
  • Know how to iterate over Set keys, values, and entries
  • Know how to convert between Set and Array
  • Know how to use Set to remove duplicate elements from an array
  • Know how WeakSet differs from Set
  • Understand when WeakSet might be preferable to Set

Out of scope

  • Implementing common set operations like union and difference

Concepts

  • sets

Prerequisites

  • arrays
  • array-destructuring
  • equality

After

  • Use cases for WeakSet
  • Lookup performance of Set vs. Array

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
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kristinaborncommented, Dec 22, 2020

@SleeplessByte I’d like to tackle this one 😃

1reaction
kristinaborncommented, Apr 3, 2021

I’m back from the dead and finally working on this 😅

I think I’m going to opt not to address WeakSet in this exercise after all, unless folks feel strongly that I should. I believe that it’s not used commonly enough outside of library code to be valuable to students.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5/3/1 Workout Explained: How to Use the 5/3/1 Method - 2022
The key concept is to slowly build strength through four barbell weightlifting exercises: the parallel squat, bench press, deadlift, and the ...
Read more >
3 Big Moves: Drop Sets, Supersets and Giant Sets - Oxygen Mag
Giant sets increase the intensity of a workout by overloading a muscle group and pushing it to its limit to burn fat and...
Read more >
How To Build Muscle With A Fast Workout (More Gains, Half ...
Traditional method - 8 total sets of 6 reps with 2.5 minutes rest between sets OR; New set configuration - Called the 3/7...
Read more >
American College of Sports Medicine position stand ... - PubMed
The optimal characteristics of strength-specific programs include the use of ... velocity with 3-5 min of rest between sets for multiple sets per...
Read more >
Guide to Sets, Reps, and Rest Time in Strength Training
The first step is understanding these terms and how they apply to your workout program. In brief, a rep means repetition, and references...
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