Skip to content

Commit 3e246bc

Browse files
authored
Update MAKEME.md
1 parent 271c521 commit 3e246bc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Week3/MAKEME.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ addSix();
4545
Write a function called `removeDuplicates`, that takes in an array as an argument:
4646

4747
```js
48-
const letters = ['a', 'b', 'c', 'd', 'a', 'e', 'f', 'c', 'b'];
48+
const letters = ['a', 'b', 'b', 'c', 'd', 'a', 'e', 'f', 'f', 'c', 'b'];
4949
```
5050

51-
The function should remove duplicate letters. So the result should be:
51+
The function should modifies the original array: it should remove duplicate letters and `return` the result.
52+
53+
The end result should be:
5254

5355
```js
54-
letters === ['a', 'b', 'c', 'd', 'e', 'f'];
56+
['a', 'b', 'c', 'd', 'e', 'f'];
5557
```
5658

5759
**Exercise 3: Guess the output**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy