Skip to content

Commit d2d9026

Browse files
committed
add iteration ironhack-labs#1
1 parent bbd5108 commit d2d9026

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/functions-and-arrays.js

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

49

510

0 commit comments

Comments
 (0)