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!
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

Jessica Graham
6,878 PointsWhy do I get SyntaxError: Unexpected token')' when I use Safari but when I use Chrome it works fine?
I'm not sure what part of the code (Exactly the same as video..from what I can tell)Safari doesn't like, but does this mean that it isn't best practise to use this kind of syntax as users may be using safari? If this is the case what is the best way to do the same job? Or am I totally off here and it is something entirely different Thank you in advance :-)
1 Answer

Michael Liendo
15,326 PointsNot sure what exactly what piece of code you're referring to since you didn't post any, but if you're curious about browser support for specific es2015 features, here's a site every JS dev should bookmark: https://kangax.github.io/compat-table/es6/ It shows browser support and will let you know if you need a transpiler like babel to bring your JS code down to something that every browser can support.
Hope that help!
Jessica Graham
6,878 PointsJessica Graham
6,878 PointsThank you for sharing that link with me :-)