blinkopk.blogg.se

Es6 functions
Es6 functions













Also, note that any variables declared with let will be mutable (their values can be changed). The let variable works similarly to var with this key difference.

es6 functions

Whilst var can still be used, it’s now discouraged with the push to modern coding standards. It has also introduced a number of new features such as: let/const, arrow functions, a new ‘this’ scope, classes, getters/setters, modules, template literals, default parameters, the spread operator, destructuring, the for.of loop and a whole lot more! let and constĮS6 introduces two new keywords for defining variables: let and const. ECMAScript is the standardization of JavaScript which was released in 2015, hence the name: ECMAScript 2015!Ī great advantage of ES6, is that it allows us to write code in a more modern & readable way. ES6 (or ECMAScript 2015) is the 6th version of the ECMAScript programming language.















Es6 functions