functions.js
/**
 * oddsSmallerThan(n):
 * - receives a number n
 * - returns the number of ODD numbers smaller than n
 *
 * e.g.
 * oddsSmallerThan(7) -> 3
 * oddsSmallerThan(15) -> 7
 */
- receives a number n
- returns the number of ODD numbers smaller than n


- receives a number n - returns the number of ODD numbers smaller than n
function oddsSmallerThan(n) {
  if (isOdd(n)) n=n-1;
  return n/2;
}
function oddsSmallerThan ( n ) { if ( isOdd ( n ) ) n = n - 1 ; return n / 2 ; }
oddsSmallerThan(n):
 - receives a number n
 - returns the number of ODD numbers smaller than n
oddsSmallerThan ( n ) : - receives a number n - returns the number of ODD numbers smaller than n
// Your code here