Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrow functions throw warning but work correctly in code editor #6782

Closed
MichaelLeeHobbs opened this issue Feb 6, 2016 · 3 comments
Closed

Comments

@MichaelLeeHobbs
Copy link

When using arrow functions in the code editor you revive a warning:

'arrow functions syntax (=>)' is only available in ES6 ('use esversion: 6').

However they work correctly with no issues.

@Greenheart
Copy link
Member

FCC recommends campers to use ES5-syntax until the browser support for ES6 is better (which it most likely will be later this year). ES6 Implementation status

This is to minimize confusion for new developers and let them focus on the core concepts instead of cutting-edge syntax and features.

Happy coding!

@sludge256
Copy link
Contributor

If your browser does support ES6 you can add this to the top of your code to disable the warnings.
//jshint esversion: 6

@dbess1
Copy link

dbess1 commented Jun 27, 2017

@sludge256 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants