Skip to content

Getters and setters are not part of ES6 #87

@marcin-mazurek

Description

@marcin-mazurek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions