jeandremelaria
4/2/2018 - 2:16 PM

Javascript - ES6 & ES7

Classes, Properties & methods

//Properties are like variables attached to classes/objects

//ES6
constructor(){
	this.myProperty = 'value';
}

//ES7 
myProperty = 'value';

//Methods are like functions attached to classes/objects

//ES6
myMethod(){...}

//ES7 
myMethod = () => {...}