Skip to content

Commit c51d213

Browse files
committed
iteration ironhack-labs#1
1 parent 4cb03c7 commit c51d213

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/functions-and-arrays.js

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

412

513

0 commit comments

Comments
 (0)