Arrow function return and double curly brackets

Thanks Kevin,
I have my answer;

I know enough now to move on and familiarize myself with it during the rest of the training.

1 Like

Cool. Yeah, this is confusing stuff. There will be more subtleties as you go. Like I said, at my last job, at least half of the junior devs thought that () => {} returned and empty object. If you understand that that gets interpreted as a code block so the function returns undefined, then you’ve already got that. Just keep working and learning, that’s what it’s all about.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.