Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 118: Enhanced Object Literals
Implement `invertObject(obj)` that swaps every key and value in `obj`. Assume all values are unique strings or numbers.
+ 1 hidden test run on Submit.
Swapping each entry's key and value produces the inverted object.
Run your code to see results.