es6 features javascript
Default Parameters in ES6.
Template Literals in ES6.
Multi-line Strings in ES6.
Destructuring Assignment in ES6.
Enhanced Object Literals in ES6.
Arrow Functions in ES6.
Promises in ES6.
Block-Scoped Constructs Let and Const.
0
5
explain js es6
Thank you!
5
0
4.22
12
// app.js
import ln, {pi, e} from "lib/mathplusplus";
alert("2π = " + ln(e)*pi*2);
Thank you!
12
0
4
10
ES6 refers to version 6 of the ECMA Script programming language
It is a major enhancement to the JavaScript language, and adds many more
features intended to make large-scale software development easier.
ECMAScript, or ES6, was published in June 2015.
It was subsequently renamed to ECMAScript 2015.
Thank you!
10
0
3.71
7
// lib/math.js
export function sum(x, y) {
return x + y;
}
export var pi = 3.141593;
Thank you!
7
0
4.5
6
// lib/mathplusplus.js
export * from "lib/math";
export var e = 2.71828182846;
export default function(x) {
return Math.log(x);
}
Thank you!
6
0
Are there any code examples left?
New code examples in category Javascript