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

Getters and setters are not part of ES6 #87

Open
marcin-mazurek opened this issue Feb 14, 2017 · 1 comment
Open

Getters and setters are not part of ES6 #87

marcin-mazurek opened this issue Feb 14, 2017 · 1 comment

Comments

@marcin-mazurek
Copy link

Hi!

Thanks for a great cheatsheet. I enjoyed reading it and learn a few new things :)

However, I think that getters and setters are not part of ES6 - they were introduced in ES5:
http://www.ecma-international.org/ecma-262/6.0/#sec-method-definitions
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get#Specifications

ES6 gives us the possibility of using getters and setters in classes :)

BR,
Marcin

DrkSephy added a commit that referenced this issue Feb 18, 2017
@DrkSephy
Copy link
Owner

Hey @marcin-mazurek, thanks for bringing this up. You're absolutely right, I've gone ahead and updated the cheat sheet.

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

2 participants