Reverse Integer

Reverse Integer

Reverse the digits of a given integer. For instance, 1234 should become 4321. For negative integers, the sign should remain in the front; e.g., -123 becomes -321.

example

Input: Integer (number).

Output: Integer (number).

Examples:

assert.strictEqual(reverseDigits(1234),...
You should be an authorized user in order to see the full description and start solving this mission.