0
The both do the same thing. The difference is the shorter one is ES6 syntax which needs to be transpiled into ES5 in order to work in older browsers.
Source:stackexchange.com
0
The both do the same thing. The difference is the shorter one is ES6 syntax which needs to be transpiled into ES5 in order to work in older browsers.