Skip to content

Commit 9218d9d

Browse files
committed
Added an example to map and added =>'s for output
1 parent 2b951bd commit 9218d9d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

2013-02-03-assignment.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ function multiples (limit) {
1919
Example Tests:
2020

2121
```javascript
22-
multiples(1); // 0
23-
multiples(10); // 23
24-
multiples(16); // 60
22+
multiples(1); // => 0
23+
multiples(10); // => 23
24+
multiples(16); // => 60
2525
```
2626

2727
### Hint
@@ -47,8 +47,8 @@ function map (xxs, fn) {
4747
Example Tests:
4848

4949
```javascript
50-
map([1, 2, 3, 4, 5], function (x) { return x * 2; }); // [2, 4, 6, 8, 10]
51-
map(['foo', 'bar', 'baz'], function (x) { return x + ' is awesome'; }); // ['foo is awesome', 'bar is awesome', 'baz is awesome']
50+
map([1, 2, 3, 4, 5], function (x) { return x * 2; }); // => [2, 4, 6, 8, 10]
51+
map(['foo', 'bar', 'baz'], function (x) { return x + ' is awesome'; }); // => ['foo is awesome', 'bar is awesome', 'baz is awesome']
5252
```
5353

5454
### Hint

0 commit comments

Comments
 (0)