Skip to content

Commit 5d23782

Browse files
committed
Fix
1 parent 768b994 commit 5d23782

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Define a function `maxOfTwoNumbers` that takes two numbers as arguments and retu
9393

9494
## Finding Longest Word
9595

96-
Write a function `findLongestWord` that takes an array of words and returns the length of the longest one. If there are 2 with the same length, it should return the first occurrence.
96+
Write a function `findLongestWord` that takes an array of words and returns the longest one. If there are 2 with the same length, it should return the first occurrence.
9797

9898
**Starter Code**
9999

starter-code/tests/FunctionsAndArraysSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ describe('Counting Repetion - howManyTimes', function () {
170170
});
171171

172172
it('returns false with an empty array', function () {
173-
expect(howManyTimes([])).toBe(undefined);
173+
expect(howManyTimes([])).toBe(false);
174174
});
175175

176176
it('returns one when the word appears only one time on the array', function () {

0 commit comments

Comments
 (0)