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 JavaScript and the DOM (Retiring) Getting a Handle on the DOM Select a Page Element By Its ID

Sandra Vu
Sandra Vu
3,525 Points

Arrow syntax does not work in my Chrome

Arrow syntax to replace "function" as shown in the tutorial does not work.

Yet, Function works just fine. My Chrome version is 54.0.2840.99

I have just read about versions of ECMA Script and arrow syntax.

How to know when to follow the updates (such as arrow syntax)? When not to do so?

Can you provide your code please?

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Sandra,

Arrow syntax has been supported in Chrome since v.45.0. So, I'm not sure why it's not working for you. Maybe double check your syntax.

You can have a look at the MDN Documentation for reference.

Hope you get it figured out. :) :dizzy: