Guest User

Untitled

a guest
May 26th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. // Don't worry about the syntax of declaring a
  2. // function - we'll go over that later.
  3.  
  4. // This should return true if the first number is bigger
  5. // than the second number and false if the first number
  6. // is smaller or equal to the second number.
  7. function isGreaterThan(first, second) {
  8.  
  9.   // Add a test here to compare the two numbers
  10.   if (first > second) {
  11.     return true;
  12.   } else {
  13.     return false;
  14.   }
  15. }
Add Comment
Please, Sign In to add comment