Record-collection problem

record-collection
i dont understand it.it says if If prop isn’t "tracks" but in the solution prop is equal to "tracks" and it confuses me.if somebody knows explain it to me please.

1 Like

You need to consider the situation in which prop is equal to tracks and the situation in which it is not. If prop is not equal to "tracks" then the if statement is not executed, and the else if is executed

2 Likes

You should not change the collection object’s initialization

I am getting this above mentioned problem every test case is passed except this.

and did you change the existing object or not?

In the future, please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.

3 Likes