Skip to content

Commit a6e71be

Browse files
committed
cool beans
1 parent 0f94b74 commit a6e71be

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"liveServer.settings.port": 5502
3+
}

src/functions-and-arrays.js

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

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

0 commit comments

Comments
 (0)