Skip to content

Commit b04e30c

Browse files
committed
First version of Iterarion ironhack-labs#1
1 parent 0f94b74 commit b04e30c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/functions-and-arrays.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
// Iteration #1: Find the maximum
2+
function maxOfTwoNumbers (num1, num2) {
3+
if (num1.length > num2.length) = true {
4+
console.log (num1);
5+
} else if (num2.length > num1.length) = true {
6+
console.log (num2);
7+
}
28

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

0 commit comments

Comments
 (0)