New String methodsĪny string value got some new instance methods: Map and Set (and their respective garbage collected WeakMap and WeakSet) are the official implementations of two very popular data structures. Visually, it’s a simple and welcome change, from: const something = function something () Map and Set Arrow FunctionsĪrrow functions since their introduction changed how most JavaScript code looks (and works). This article describes the most important changes. To understand how fundamental ES2015 is, just keep in mind that with this version, the specification document went from 250 pages to ~600. Since this long time passed between ES5.1 and ES6, the release is full of important new features and major changes in suggested best practices in developing JavaScript programs. So it should not be named as ES6 (although everyone calls it as such) but ES2015 instead.ĮS5 was 10 years in the making, from 1999 to 2009, and as such it was also a fundamental and very important revision of the language, but now much time has passed that it’s not worth discussing how pre-ES5 code worked. Published 4 years after the latest standard revision, ECMAScript 5.1, it also marked the switch from edition number to year number. Discover everything about ECMAScript, and the features added in ES6, aka ES2015.ĮCMAScript 2015, also known as ES6, is a fundamental version of the ECMAScript standard. ECMAScript is the standard upon which JavaScript is based, and it's often abbreviated to ES.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |