ECMA 6

  • Véase ECMA6 new features
  • Arrow functions
    • An arrow function expression has a shorter syntax compared to function expressions and lexically binds the this value. Arrow functions are always anonymous.
  • Template literals
    • Template literals are string literals allowing embedded expressions.
  • You can use multi-line strings and string interpolation features with template strings:
    let name = "Bob", time = "today";
    `Hello ${name}, how are you ${time}?`
    
    You can use multi-line strings and string interpolation features with them.
  • let vs var
    • When used inside a block, let limits the variable's scope to that block. Note the difference between var whose scope is inside the function where it is declared.
  • const is single-assignment. Static restrictions prevent use before assignment.

Talk at jQuery 2014 by John K. Paul Conference: ES6 Right now

Estado actual de Browsers/Servidores y Compiladores en ECMA 6

results matching ""

    No results matching ""