:warning: victorhall already gave mot01 points
collection, and an
id, what would you do with that to try and find a
tracksproperty? Your answer is close, but you have to make sure that you understand when you can use dot notation vs. bracket notation to access an object.
idbecause when you call the function, as they have one sample call at the bottom of the edit window, that value will be avaiable in the
idvariable and you'll be using it in the way that will be a general-purpose solution. But, for the sake of argument, you are using one of the values. So let's move on to the next thing. If you have this construct:
collection["1245"]- what does that allow you to access within the data?
@moT01 - well, it's better than counting into the negative values, I've seen that. So the next question is that I didn't hear any sound when it changed from the session to the break? I think that is one of the requirements, they mention it in the user stories, I think?
One other thing, and if you have it working, it's fine - it's easier to keep your time value in seconds only, and not have to make calculations against seconds and minutes.
But it looks good overall!
collection["1245"], how would you determine whether or not it has a