Hi there, this is definitely something very simple for you skilled folk out there but I don’t understand so would appreciate your help in understanding! The query is how come I need to use “.” notation vs notation to get the problem to work - I thought one could use either . or to access an object?
This is similar to
console.log(thing); // prints undefined
console.log ("thing"); // prints "thing"
let thing = "stuff";
console.log(thing); // prints "stuff"
Thank you both. I retried it with [“tracks”] and that worked so that helps clear up one big part of my understanding. For the second part, I see what you mean around it being an undefined variable but is tracks not defined in the object that precedes the function or is that a scope issue or something else I need to understand better?