Skip to content

Commit 43e0a34

Browse files
committed
Iteration ironhack-labs#1 done
1 parent e45b209 commit 43e0a34

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/functions-and-arrays.js

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

410

511

0 commit comments

Comments
 (0)