signintermediate// Returns -1, 0, or 1 based on sign
Math.sign(-5) // β -1
Math.sign(0) // β 0
Math.sign(3) // β 1Use Math.sign() to determine whether a number is positive, negative, or zero.
Returns the sign of a number, indicating whether it is positive, negative, or zero.
Challenge: Explore Math.sign(-0) which returns -0, distinguishable via Object.is.