Javascript Array — interview coding questions

Reverse a number

Method 1:

Remove a key value pair from array