10 pts Create a function that takes 2 integers (num1) and (num2) and returns true if (num2) is greater than (num1), return false if (num2) is less than (num1), otherwise return the string "equal".
function checkNums(num1, num2){ //Enter Your Code Here }
Test Cases:
  • checkNums(5, 8) to return true
  • checkNums(3, 3) to return equal
  • checkNums(100, -100) to return false
00:00 / 01:39

Share the mistake you found and we’ll fix as soon as we can.