JS6: new way to write functions

Oscar Brito


The Sixth Edition is still being debated and drafted. We won’t know for certain what will be in the next edition until it is approved by the ECMA General Assembly.



So instead of writing
function (x) {     return x * x; }

you can instead write 
(x) => x * x 
(this, x) => {    this.property = x;}




Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.



Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.


Feel free to contact divhide.