Skip to content

Commit 070dcc6

Browse files
committed
fix variable definition in ironhack-labs#2
1 parent 7717fd5 commit 070dcc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functions-and-arrays.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ function maxOfTwoNumbers(aNumber, anotherNumber) {
1010
const words = ['mystery', 'brother', 'aviator', 'crocodile', 'pearl', 'orchard', 'crackpot'];
1111

1212
function findLongestWord(input) {
13-
if (!input || input.length == 0) {
13+
if (!input || input.length === 0) {
1414
return null;
1515
}
1616
let longestWord = '';
17-
for (word of input) {
17+
for (let word of input) {
1818
if (word.length > longestWord.length) {
1919
longestWord = word;
2020
}

0 commit comments

Comments
 (0)