Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Don't worry about the syntax of declaring a
- // function - we'll go over that later.
- // This should return true if the first number is bigger
- // than the second number and false if the first number
- // is smaller or equal to the second number.
- function isGreaterThan(first, second) {
- // Add a test here to compare the two numbers
- if (first > second) {
- return true;
- } else {
- return false;
- }
- }
Add Comment
Please, Sign In to add comment