Skip to content

Commit c9d3b85

Browse files
authored
Merge pull request #1 from Chakstor/feature/iteration_1
First iteration completed
2 parents bc3a7b8 + 4ca874f commit c9d3b85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

starter-code/src/functions-and-arrays.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// Iteration #1: Find the maximum
2+
function maxOfTwoNumbers(a, b) {
3+
return a > b ? a : b;
4+
}
25

36
// Iteration #2: Find longest word
47
const words = ['mystery', 'brother', 'aviator', 'crocodile', 'pearl', 'orchard', 'crackpot'];

0 commit comments

Comments
 (0)