Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed function call in 2.2, all unit tests pass
  • Loading branch information
jshortz committed Jul 14, 2019
commit 327c20390eb8c8c1b49d5eeeaf84432518043d35
4 changes: 2 additions & 2 deletions Week3/homework/step2-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ function threeFive(startIndex, stopIndex, threeCallback, fiveCallback) {
for (let i = 0; i < numbers.length; i++) {
const number = numbers[i];
if (number % 3 === 0) {
threeCallback = sayThree(number);
threeCallback(number);
}
if (number % 5 === 0) {
fiveCallback = sayFive(number);
fiveCallback(number);
}
}
console.log(startIndex, stopIndex, threeCallback, fiveCallback, numbers);
Comment thread
jshortz marked this conversation as resolved.
Outdated
Expand Down