Skip to content

Commit 74d46fd

Browse files
committed
question answer (d) changed
1 parent 2253eff commit 74d46fd

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
@@ -38,7 +38,7 @@ module.exports = invert;
3838
// It is needed to iterate over each key-value pair in the input object.
3939

4040
// d) Explain why the current return value is different from the target output
41-
// Numeric key values are converted to strings in the output object keys.
41+
// They are the same. Object keys are always strings, so the functions converts values into string keys and assigns the original key as the new value.
4242

4343
// e) Fix the implementation of invert (and write tests to prove it's fixed!)
4444
// Invert function passes 4 edge case tests.

0 commit comments

Comments
 (0)