Getters and setters are not part of ES6

Author: marcin-mazurekCreated Feb 14, 2017Updated Feb 18, 2017

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