We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 306a8ff commit 5a24fabCopy full SHA for 5a24fab
starter-code/src/functions-and-arrays.js
@@ -1,4 +1,8 @@
1
// Iteration #1: Find the maximum
2
+function maxOfTwoNumbers(num1, num2) {
3
+ let result = num1 >= num2 ? num1 : num2;
4
+ return result;
5
+}
6
7
// Iteration #2: Find longest word
8
const words = ['mystery', 'brother', 'aviator', 'crocodile', 'pearl', 'orchard', 'crackpot'];
0 commit comments