Repository navigation
Conversation
| const list_of_items= {}; | ||
|
|
||
| for (const item of items) { | ||
| if (list_of_items [item]) { |
There was a problem hiding this comment.
What does list_of_items[item] return on the first occurrence of an item such as "toString"?
To "like" or "dislike" this comment, please follow this link
| return invertedObj; | ||
| } | ||
|
|
||
| console.log(invert); |
There was a problem hiding this comment.
What output appears whenever a test or another module imports this file?
To "like" or "dislike" this comment, please follow this link
| const countryCurrencyPairs = [ | ||
| ["US", "USD"], | ||
| ["CA", "CAD"], | ||
| ["GB", "GPB"], |
There was a problem hiding this comment.
The fixture uses GPB for GB, and the expected object repeats that value, so this test accepts the wrong currency code. What code should this mapping use?
To "like" or "dislike" this comment, please follow this link
|
The CYF AI review has left comments. It will only review a PR one time. When you have addressed these comments, please request review again and a volunteer will take a look. |
Task code
CYF-1083
Changelist
Debugged, implemented and interpreted the code across multiple files.