London 9 - Oleh Pysmenko - JavaScript Core 1 - Week 3 - #166
Conversation
|
Your Details What did you find hard? What do you still not understand? Any other notes? |
|
Hi @nuclear-pasta. |
I will give a check after 6pm |
| } | ||
|
|
||
| } | ||
| return [nameChil, nameNon, nameCook] |
There was a problem hiding this comment.
you can rewrite this function without the need to declare the genre, and in a single loop.
what if you register an empty object before the loop, and every time there is a new genre, you register that genre as the key of the object, and as value, you register the rating (highest rating but at the first loop will be whatever rating). This will save you from new genre non considered in your code.
No description provided.