Skip to content

Commit 57a602e

Browse files
committed
invert.js fixed
1 parent f5c06bd commit 57a602e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sprint-2/interpret/invert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function invert(obj) {
2323
// { key: 2 }
2424

2525
// c) What is the target return value when invert is called with {a : 1, b: 2}
26-
// { key: 2 }
26+
// {1 : 'a', 2: 'b'}
2727

2828
// c) What does Object.entries return? Why is it needed in this program?
2929
// Object.entries() returns an array of a given object's own enumerable string-keyed property key-value pairs

0 commit comments

Comments
 (0)