Skip to content

Commit

Permalink
Swap a couple things in the more args example
Browse files Browse the repository at this point in the history
  • Loading branch information
chellman committed Mar 24, 2023
1 parent 3159dfb commit d8baf74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Ch06/06_02/transcript.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ function isEven(num) {
}
}

isEven(12);
12 % 2;

function isEven(num) {
return num % 2 === 0;
}

12 % 2;
isEven(44);

// More info:
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function

0 comments on commit d8baf74

Please sign in to comment.