Adrián Bolonio
A little bit of history...
1995
LiveScript
1996-99
ECMA1
Netscape
2002
JSON
2006
jQuery
GWT
2009-11
NodeJS
ECMA5
Coffeescript
Firebug
Mocha
ECMA = European Computer Manufacturers' Association
ECMA2
ECMA3
this.message = 'hello world';
var that = this;
process.nextTick(function() {
console.log(that.message);
});
process.nextTick(() => {
console.log(this.message);
});
for (var i = 0; i < 3; i++) {
let j = i * i;
console.log(j);
}
console.log(j); // => error, j is undefined
const PI = 3.14159265359;
PI = 0; // => error: PI is read-only
class Monster extends Entity {
constructor(name) {
super();
this.name = name;
}
get scariness() {
return 'mild';
}
speak() {
super.speak();
}
static create() {
return new Monster();
}
}
vs
vs
vs
vs
*Data taken on the 30th June 2015
vs
vs
AngularJS / BackboneJS / EmberJS
jQuery / Underscore / DB3
CoffeeScript / Dart / TypeScript
NodeJS
ECMA6