Ecmascript6
-
Compiling riot.js tags using Webpack and Babel 6
We’ve started working with riot.js at work and so far it have been great. Last weekend I decided that it would be nice to update our dependencies in the project. As usual I thought to myself, how hard can it be? And as always, it’s usually not as easy as it seems from the start. We use webpack as a build tool and the riotjs-loader for compiling the riot tags into JavaScript.
-
Learning ES6 - Default Values & Destructuring
Today, I thought that we could speak about two new features in ECMAScript 6 that are pretty useful when writing functions: default values and destructuring.
-
Learning ES6 - Strings
There have been some improvements to the ways you can create and work with Strings in ECMAScript 6. For example, new methods were added to the String object. However, the most interesting addition is the new string literal syntax called template strings, and that’s what I’m going to talk about today.
-
Learning ES6 - Arrow Functions
One of the key features in JavaScript is the ability to pass around functions as variables. The use of this feature is quite common in most JavaScript Libraries and Frameworks, as well as in the language itself. If you have written something in for example jQuery or plain JavaScript, then you have most likely written a callback before. A callback is actually just a function you pass around and call when some task has completed.
-
Learning ES6 - let and const
Over the past few weeks I’ve started to dive more into EcmaScript 6. I’ve decided that I’m going to take the time and document what I learn here, starting with the new ways of declaring variables let and const. I’ve also started a new repository over at Github that will act as a cheat sheet. Of course, as of writing this, it is still a work in progress but I’m hoping to expand it further over the next coming weeks.