Tell us what’s happening:
So, I’m running into some confusion. All in all, it is easy enough to pass the test, but it feels more like I’m just copying what I’m seeing in the explanation and not really learning (thats a problem that I notice in a lot of the sections thus far but w/e).
I notice that the function syntax here has parentheses surrounding the curly brackets and I have no idea why. Normally the code inside a function is bracketed by curly brackets but here it’s using the parentheses while I assume the returned object is being defined by the curly brackets? I’m just really unclear about this in general and it is frustrating when I am genuinely trying to learn but the explanations behind why things are the way they are is lacking. Your code so far
Thanks for the quick reply! I think I understand – the parentheses are there primarily to have the arrow function syntax read the object as an object and not assume the curly brackets are a chunk of code for the function to then execute. I may have phrased that poorly, I’m still quite new to coding and working on getting my head around things.