Skip to content

Commit a3c2338

Browse files
committed
Edit prerequisites and add exercise to root-level config file
1 parent 53015e1 commit a3c2338

File tree

5 files changed

+28
-9
lines changed

5 files changed

+28
-9
lines changed

concepts/sets/.meta/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"blurb": "TODO: add blurb for sets concept",
2+
"blurb": "Store a collection of unique values",
33
"authors": ["kristinaborn"],
44
"contributors": []
55
}

concepts/sets/about.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# About
22

3-
In JavaScript, a [set][mdn-sets] is a list-like data structure that can only contain unique primitives and/or object references.
3+
In JavaScript, a set is a list-like data structure that can only contain unique primitives and/or object references.
44

5-
Sets must be created using the [set constructor][mdn-set-constructor]; they can be initialized with values by passing an array to the constructor.
5+
Sets must be created using the set constructor; they can be initialized with values by passing an array to the constructor.
66

77
```javascript
88
const emptySet = new Set();
@@ -88,8 +88,6 @@ The short answer is that sets are optimized for searching, and arrays are not. A
8888

8989
In practice, though, this performance difference is negligible unless the collection contains a huge amount of data.
9090

91-
[mdn-sets]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
9291
[mdn-strict-equality]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#strict_equality_using
93-
[mdn-set-constructor]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/Set
9492
[mdn-keyed-collections]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Keyed_collections
9593
[mdn-spread-syntax]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax

concepts/sets/links.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
[]
1+
[
2+
{
3+
"url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set",
4+
"description": "MDN: Sets"
5+
}
6+
]

config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,20 @@
163163
"concepts": ["promises"],
164164
"prerequisites": ["arrays", "callbacks", "errors", "recursion"],
165165
"status": "beta"
166+
},
167+
{
168+
"slug": "ozans-playlist",
169+
"name": "Ozan's Playlist",
170+
"uuid": "",
171+
"concepts": ["sets"],
172+
"prerequisites": [
173+
"array-destructuring",
174+
"array-loops",
175+
"comparison",
176+
"rest-and-spread-operators",
177+
"arrays"
178+
],
179+
"status": "beta"
166180
}
167181
],
168182
"practice": [

exercises/concept/ozans-playlist/.meta/design.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ The Concepts this exercise unlocks are:
2222

2323
## Prerequisites
2424

25-
- `array-destructuring` because examples use array destructuring and the spread operator
26-
- `equality` because it is referenced in the introduction and `about.md`
27-
- `strings` because one task involves splitting a string
25+
- `array-destructuring` because examples use array destructuring
26+
- `comparison` because this is where equality is explained
27+
- `array-loops` because it introduces the for-of loop
28+
- `rest-and-spread-operators`
29+
- `arrays`
2830

2931
## Analyzer
3032

0 commit comments

Comments
 (0)