Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Provide and Consume Actions

Jakub Drobina
Jakub Drobina
12,675 Points

difference between parentheses and curly braces

What's the difference between parentheses and curly braces in the context arrow function inside the Consumer

Teron Bullock
Teron Bullock
Courses Plus Student 23,599 Points

Can you please expand on your question? I'm not sure what you are asking.

Thank you,

1 Answer

Teron Bullock
PLUS
Teron Bullock
Courses Plus Student 23,599 Points

Without more info, I believe you maybe referring to the Implicit Returns. Here is a link that may help you: https://medium.com/@bunlong/arrow-functions-return-rules-in-javascript-b63ed5f25994

In short the Implicit Return is a function that returns values without using the return keyword.

I hope this helps.