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 Concise Arrow Function Syntax

Sean Flanagan
Sean Flanagan
33,235 Points

Functionally the same: my solution

Hi.

I decided to take a crack at the last two arguments in 03_multiple_arguments and all the arguments in 04_functionally_the_same.js for myself. I'm confident my code is correct but I would appreciate any errors I've made being pointed out please.

Here's a snapshot:

https://w.trhou.se/k56kkqnyt7

Thanks

Sean

1 Answer

Steven Parker
Steven Parker
231,269 Points

You don't actually need our help on this one, since the answers are shown in the last video.

But since I peeked, the only thing that stood out for me was that "divide3" and "divide4" were the both same (concise format), where "divide3" was intended to be the form that is enclosed in braces and uses a "return" statement.