32-bit integer has range from -2147483648 ( -2^31 ) to 2147483647 ( 2^31 − 1 ) Therefore, if we pass into our reverse function.
The Number() function converts the object argument to a number that represents the object’s value. If the value cannot be converted to a legal number, NaN is returned. Note: If the parameter is a Date object, the Number() function returns the number of milliseconds since midnight January 1, 1970 UTC.
What is 32-bit signed integer?
A signed integer is a 32-bit datum that encodes an integer in the range [-2147483648 to 2147483647]. An unsigned integer is a 32-bit datum that encodes a nonnegative integer in the range [0 to 4294967295].
Is 0 a number in JS?