Ad
  • Default User Avatar

    Since the instructions say we do not need to worry about null or undefined values, you can use the unary operator to coerce the number to an int - +number and use a double-bitwise operator to chop any decimal values that may follow - ~~number