New shorthands for properties having the same name as the variable assigned to them, concise properties.
Shorthand for functions, concise functions, although the underlying function is anonymous therefore cannot be reference, for example in the case of recursion.
Also computed property names allows the use of variables as property names, inside object literals, using square brackets.
And template literals were added, the backtick operator used designate an interpolatable string where variables are surrounded by curly braces and preceded by a dollar sign.
Shorthand for functions, concise functions, although the underlying function is anonymous therefore cannot be reference, for example in the case of recursion.
Also computed property names allows the use of variables as property names, inside object literals, using square brackets.
And template literals were added, the backtick operator used designate an interpolatable string where variables are surrounded by curly braces and preceded by a dollar sign.
Comments
Post a Comment