Skip to content

Commit 7215ba0

Browse files
committed
Make problem descriptions more consistent.
1 parent 3e2fd14 commit 7215ba0

File tree

19 files changed

+73
-107
lines changed

19 files changed

+73
-107
lines changed

problems/async_loops/problem.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ Because this function is asynchronous, we do not care about its return value.
2626
* done: a Function that expects an Array of user objects (as retrieved from `load`).
2727

2828
## Conditions
29-
* Do not use any for/while loops.
29+
30+
* Do not use for/while loops (Array#forEach ok).
3031
* The order of the results in `done` must be the same as they were specified in `userIds`.
3132
* Users should be loaded in parallel i.e. the entire job should not take more than 1 second.
33+
* Do not create any unecessary functions e.g. helpers.
3234

33-
## Hint
35+
## Hint
3436

3537
* You don't need to use a sort to maintain ordering.
3638

problems/basic_call/problem.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ duckCount(duck, notDuck) // 1
8282

8383
## Conditions
8484

85-
* Do not use any for/while loops.
85+
* Do not use any for/while loops or Array#forEach.
8686
* Do not create any counter/accumulator variables.
87-
* You do not need to define any additional name functions
88-
unless a stub is provided in the boilerplate.
87+
* Do not create any unecessary functions e.g. helpers.
8988

9089
## Hint
9190

problems/basic_every_some/problem.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ testAllValid([
3838
Use array#some and Array#every to check every user passed to your returned
3939
function exists in the array passed to the exported function.
4040

41+
## Conditions
42+
43+
* Do not use any for/while loops or Array#forEach.
44+
* Do not create any unecessary functions e.g. helpers.
45+
4146
## Resources
4247

4348
* https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/every

problems/basic_filter/problem.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ and returns an array of messages that are *less than < 50 characters long*.
1616

1717
## Conditions
1818

19-
* Do not use for loops or Array#forEach.
19+
* Do not use any for/while loops or Array#forEach.
20+
* Do not create any unecessary functions e.g. helpers.
2021

2122
## Hint
2223

2324
* Try chaining some Array methods!
2425

25-
## Expected Output
26+
## Example
2627

2728
The function should return an array containing the messages themselves,
2829
*without their containing object*.

problems/basic_inheritance_with_objectcreate/problem.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ User.prototype.toString = function() {
4040

4141
Note: you do not need to copy this into your solution.
4242

43-
## Expected Output
43+
## Example
4444

4545
From your exported function, return a `BetterUser` constructor function
4646
that extends `User` with a custom `toString` method that works like so:
@@ -54,6 +54,7 @@ console.log('Hello ' + joe) // 'Hello [BetterUser: Mr. Joe Smith]'
5454

5555
* Don't call the User constructor unnecessarily!
5656
* Don't use `__proto__`
57+
* Do not create any unecessary functions e.g. helpers.
5758

5859
## Resources
5960

problems/basic_inheritance_without_objectcreate/problem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ User.prototype.toString = function() {
6363

6464
Note: you do not need to copy this into your solution.
6565

66-
## Expected Output
66+
## Example
6767

6868
From your exported function, return a `BetterUser` constructor function
6969
that extends `User` with a custom `toString` method that works like so:

problems/basic_map/problem.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ module.exports = doubleAll
2020

2121
## Conditions
2222

23-
* Do not use any for/while loops.
24-
* You do not need to define any additional functions
25-
unless a stub is provided in the boilerplate.
2623
* Your solution should use Array.prototype.map()
24+
* Do not use any for/while loops or Array.prototype.forEach.
25+
* Do not create any unecessary functions e.g. helpers.
2726

2827
## Resources
2928

problems/basic_recursion/problem.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ reduce([1,2,3], function(prev, curr, index, arr) {
5656
## Conditions
5757

5858
* Do not use any for/while loops.
59-
* Do not use any Array methods like map or reduce.
59+
* Do not use any Array methods like Array#map or Array#reduce.
60+
* Do not create any unecessary functions e.g. helpers.
6061

6162
## Resources
6263

problems/basic_reduce/problem.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ console.log(countWords(inputWords))
2525

2626
## Conditions
2727

28-
* Do not use any for/while loops.
29-
* You do not need to define any additional functions
30-
unless a stub is provided in the boilerplate.
28+
* Do not use any for/while loops or Array#forEach.
29+
* Do not create any unecessary functions e.g. helpers.
3130

3231
## Resources
3332

problems/blocking_event_loop/problem.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ loop such that the timeout fires before 1500 milliseconds elapse.
1010

1111
Try to perform as many operations as you can before the timeout fires!
1212

13+
## Conditions
14+
15+
* Do not use any for/while loops or Array#forEach.
16+
* Do not create any unecessary functions e.g. helpers.
17+
1318
## Hints
1419

1520
* If your program takes a long time to run, something is probably wrong.

0 commit comments

Comments
 (0)