Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 118: Enhanced Object Literals
Implement `invert(obj)` returning a new object where each value becomes a key and each key becomes the value.
+ 1 hidden test run on Submit.
Swapping each entry's key and value builds the inverted object; remember object keys are always strings.
Run your code to see results.