Skip to content

Commit cab57bb

Browse files
committed
Fix wording to remove errant "print" instruction
also add emphasis to hint about unwrapping objects
1 parent 2d11285 commit cab57bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

problems/basic_filter/problem.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Use Array#filter to write a function called `getShortMessages`.
22

33
`getShortMessages` takes an array of objects with '.message' properties
4-
and prints any messages that are *less than < 50 characters long*.
4+
and returns an array of messages that are *less than < 50 characters long*.
55

66
Arguments:
77

@@ -23,7 +23,8 @@ Hint: Try chaining some Array methods!
2323

2424
Expected Output:
2525

26-
The function should return an array containing the messages themselves, without their containing object.
26+
The function should return an array containing the messages themselves,
27+
*without their containing object*.
2728

2829
e.g.
2930

0 commit comments

Comments
 (0)