Two people are trying to determine if they are compatible as friends and there is one criteria
Fantastic news! We've Found the answer you've been seeking!
Question:
Two people are trying to determine if they are compatible as friends and there is one criteria that is very important to both of them and they must agree on this issue. Conveniently they are able to represent their views as integers and have also determined a boundary integer to determine which side of the issue they are on.
Write a function named "same_side" that takes two integers as parameters. The function will return a boolean which represents true if the inputs are both greater than 45 or if they are both less than 45. If the inputs are not on the same side of 45 or if either input is equal to 45 then the function should return a value representing false.
IN JAVASCRIPT
Related Book For
Business Analytics Methods Models and Decisions
ISBN: 978-0321997821
2nd edition
Authors: James R. Evans
Posted Date: