Skip to content

Commit 30bcbc5

Browse files
committed
interação ironhack-labs#1
1 parent 13ac3f3 commit 30bcbc5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/functions-and-arrays.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
// Iteration #1: Find the maximum
2-
function maxOfTwoNumbers() {}
3-
2+
function maxOfTwoNumbers(num1, num2){
3+
if (num1 > num2){
4+
return num1
5+
} else {
6+
return num2
7+
}
8+
}
49

510

611
// Iteration #2: Find longest word
712
const words = ['mystery', 'brother', 'aviator', 'crocodile', 'pearl', 'orchard', 'crackpot'];
8-
913
function findLongestWord() {}
14+
1015

1116

1217

0 commit comments

Comments
 (0)