Skip to content

Commit bcf07ea

Browse files
committed
Add missing function declarations, imports and exports
1 parent a1c25ce commit bcf07ea

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/*.js

src/functions-and-arrays.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ function averageNumbers() {}
3232
// Level 2: Array of strings
3333
const wordsArr = ['seat', 'correspond', 'linen', 'motif', 'hole', 'smell', 'smart', 'chaos', 'fuel', 'palace'];
3434

35+
function averageWordLength() { }
3536

37+
// Bonus - Iteration #4.1
38+
function avg() {}
3639

3740
// Iteration #5: Unique arrays
3841
const wordsUnique = [
@@ -117,6 +120,8 @@ if (typeof module !== 'undefined') {
117120
sumNumbers,
118121
sum,
119122
averageNumbers,
123+
averageWordLength,
124+
avg,
120125
uniquifyArray,
121126
doesWordExist,
122127
howManyTimes,

tests/functions-and-arrays.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const {
44
sumNumbers,
55
sum,
66
averageNumbers,
7+
averageWordLength,
8+
avg,
79
uniquifyArray,
810
doesWordExist,
911
howManyTimes,

0 commit comments

Comments
 (0)