I'm trying to get the highest key and value from an object, how can I return the desired result?
Here's my object:
categories = {
            'personal' : 4,
            'swag' : 3,
            'mingle' : 2,
            'attention' : 1
};
Desired functionality:
returnMax(categories) // {personal : 4}
 
     
     
    