Skip to content

Commit 2c9e1aa

Browse files
committed
fixing grammar mistakes
1 parent 62636b1 commit 2c9e1aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sprint-2/interpret/invert.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ const profile = {
4343

4444
// d) Explain why the current return value is different from the target output
4545
// The current return value is different from the target output because the function
46-
// is working improperly. First of all, the key should be taken on brackets to make possible
47-
// to read every key name-value and value in every pair in subarray.
46+
// is working improperly. First of all, the key should be taken in brackets to make it possible
47+
// to read every key name-value and value in every pair in the subarray.
4848
// invertedObj.key = value: This is a direct assignment. It treats "key" as a literal string
4949
// and creates or updates a property named "key" on the invertedObj object, setting its value
50-
// to the value of the value variable.
50+
// to the value of the variable.
5151
// invertedObj[key] = value: This uses bracket notation. It evaluates the key variable and uses
5252
// its value (which is a string) as the property name on invertedObj.
53-
// Secondly, change the key and value places for new object creation statement
54-
// 'invertedObj[value] = key;' to get swapping the keys and values in the new object.
53+
// Secondly, change the key and value places for the new object creation statement
54+
// 'invertedObj[value] = key;' to swap the keys and values in the new object.
5555

5656
// e) Fix the implementation of invert (and write tests to prove it's fixed!)
5757

0 commit comments

Comments
 (0)