/ Chrome Canary: chrome://flags -> Enable Experimental JavaScript Firefox: Just use it (I used Firefox 19 and Nightly) Try it out Dienstag, 16. April 13
Ruby ['egg', 'bacon', 'salt'].each do |x| puts x # egg, bacon, salt end puts x # NameError: undefined local variable or method `x' for #<Object:0x10de53298> Dienstag, 16. April 13
new (no Constructor) No .prototype Trying to access arguments will result in a ReferenceError No dynamic this (call, apply) - lexical scope Dienstag, 16. April 13
argument: var sayHi = () => { console.log('hi!'); }; sayHi(); // hi! // one argument var square = x => x * x; square(3); // 9 // more than one argument: var calcRectangle = (a, b) => a * b; calcRectangle(2, 4); // 8 Dienstag, 16. April 13